Skip to content

Commit

Permalink
fix the tag name in the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Sep 12, 2024
1 parent 24d820d commit eb9e25c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/util/cmd/execution-state-extract/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,5 +507,5 @@ func ensureCheckpointFileExist(dir string) error {
return nil
}

return fmt.Errorf("no checkpoint file was found, no root checkpoint file was found in %v, check the --execution-data-dir flag", dir)
return fmt.Errorf("no checkpoint file was found, no root checkpoint file was found in %v, check the --execution-state-dir flag", dir)
}
4 changes: 2 additions & 2 deletions cmd/util/ledger/util/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ func ReadTrie(dir string, targetHash flow.StateCommitment) ([]*ledger.Payload, e
s, err2 := led.MostRecentTouchedState()
if err2 != nil {
log.Error().Err(err2).
Msgf("cannot get most recently touched state in %v, check the --execution-data-dir flag", dir)
Msgf("cannot get most recently touched state in %v, check the --execution-state-dir flag", dir)
} else if s == ledger.State(mtrie.NewEmptyMTrie().RootHash()) {
log.Error().Msgf("cannot find any trie in folder %v. check the --execution-data-dir flag", dir)
log.Error().Msgf("cannot find any trie in folder %v. check the --execution-state-dir flag", dir)
} else {
log.Info().
Str("hash", s.String()).
Expand Down

0 comments on commit eb9e25c

Please sign in to comment.