Skip to content

Commit

Permalink
improve error fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Sep 27, 2023
1 parent 1d2f2de commit 1c4810e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/conf/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func DatabaseInDirectory(path string) bool {
func (c *PersistentConfig) Validate() error {
// we are validating .db-engine here to avoid unintended behaviour as empty string value also has meaning in geth's node.Config.DBEngine
if c.DBEngine != "leveldb" && c.DBEngine != "pebble" {
return fmt.Errorf("Invalid .db-engine choice: \"%v\", allowed \"leveldb\" or \"pebble\"", c.DBEngine)
return fmt.Errorf(`invalid .db-engine choice: %q, allowed "leveldb" or "pebble"`, c.DBEngine)
}
return nil
}

0 comments on commit 1c4810e

Please sign in to comment.