mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
cmd: error strings should not be capitalized
This commit is contained in:
parent
447b5f7e19
commit
8b9fd4562c
4 changed files with 4 additions and 4 deletions
|
|
@ -213,7 +213,7 @@ func applyShanghaiChecks(env *stEnv, chainConfig *params.ChainConfig) error {
|
|||
return 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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ func (fq *filterQuery) isWildcard() bool {
|
|||
func (fq *filterQuery) calculateHash() common.Hash {
|
||||
enc, err := rlp.EncodeToBytes(&fq.results)
|
||||
if err != nil {
|
||||
exit(fmt.Errorf("Error encoding logs: %v", err))
|
||||
exit(fmt.Errorf("error encoding logs: %v", err))
|
||||
}
|
||||
return crypto.Keccak256Hash(enc)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@ func (s *filterTestGen) randomQuery() *filterQuery {
|
|||
func (s *filterTestGen) writeQueries() {
|
||||
file, err := os.Create(s.queryFile)
|
||||
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
|
||||
}
|
||||
json.NewEncoder(file).Encode(&s.queries)
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ func (st *bucketStats) print(name string) {
|
|||
func writeErrors(errorFile string, errors []*filterQuery) {
|
||||
file, err := os.Create(errorFile)
|
||||
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
|
||||
}
|
||||
defer file.Close()
|
||||
|
|
|
|||
Loading…
Reference in a new issue