diff --git a/cmd/util/cmd/execution-state-extract/cmd.go b/cmd/util/cmd/execution-state-extract/cmd.go index 207ddd37846..9bfba99bad4 100644 --- a/cmd/util/cmd/execution-state-extract/cmd.go +++ b/cmd/util/cmd/execution-state-extract/cmd.go @@ -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) } diff --git a/cmd/util/ledger/util/state.go b/cmd/util/ledger/util/state.go index 7f42c04813f..049573a2362 100644 --- a/cmd/util/ledger/util/state.go +++ b/cmd/util/ledger/util/state.go @@ -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()).