cmd: error strings should not be capitalized

This commit is contained in:
wit 2025-11-09 11:23:53 +08:00
parent 447b5f7e19
commit 8b9fd4562c
4 changed files with 4 additions and 4 deletions

View file

@ -213,7 +213,7 @@ func applyShanghaiChecks(env *stEnv, chainConfig *params.ChainConfig) error {
return nil return nil
} }
if env.Withdrawals == nil { if env.Withdrawals == nil {
return NewError(ErrorConfig, errors.New("Shanghai config but missing 'withdrawals' in env section")) return NewError(ErrorConfig, errors.New("shanghai config but missing 'withdrawals' in env section"))
} }
return nil return nil
} }

View file

@ -207,7 +207,7 @@ func (fq *filterQuery) isWildcard() bool {
func (fq *filterQuery) calculateHash() common.Hash { func (fq *filterQuery) calculateHash() common.Hash {
enc, err := rlp.EncodeToBytes(&fq.results) enc, err := rlp.EncodeToBytes(&fq.results)
if err != nil { if err != nil {
exit(fmt.Errorf("Error encoding logs: %v", err)) exit(fmt.Errorf("error encoding logs: %v", err))
} }
return crypto.Keccak256Hash(enc) return crypto.Keccak256Hash(enc)
} }

View file

@ -352,7 +352,7 @@ func (s *filterTestGen) randomQuery() *filterQuery {
func (s *filterTestGen) writeQueries() { func (s *filterTestGen) writeQueries() {
file, err := os.Create(s.queryFile) file, err := os.Create(s.queryFile)
if err != nil { if err != nil {
exit(fmt.Errorf("Error creating filter test query file %s: %v", s.queryFile, err)) exit(fmt.Errorf("error creating filter test query file %s: %v", s.queryFile, err))
return return
} }
json.NewEncoder(file).Encode(&s.queries) json.NewEncoder(file).Encode(&s.queries)

View file

@ -156,7 +156,7 @@ func (st *bucketStats) print(name string) {
func writeErrors(errorFile string, errors []*filterQuery) { func writeErrors(errorFile string, errors []*filterQuery) {
file, err := os.Create(errorFile) file, err := os.Create(errorFile)
if err != nil { if err != nil {
exit(fmt.Errorf("Error creating filter error file %s: %v", errorFile, err)) exit(fmt.Errorf("error creating filter error file %s: %v", errorFile, err))
return return
} }
defer file.Close() defer file.Close()