Skip to content

Commit

Permalink
go-ipfs-config: fix error style
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <[email protected]>
  • Loading branch information
magik6k committed Mar 30, 2018
1 parent 8f73589 commit 365ec7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func FromMap(v map[string]interface{}) (*Config, error) {
}
var conf Config
if err := json.NewDecoder(buf).Decode(&conf); err != nil {
return nil, fmt.Errorf("Failure to decode config: %s", err)
return nil, fmt.Errorf("failure to decode config: %s", err)
}
return &conf, nil
}
Expand All @@ -105,7 +105,7 @@ func ToMap(conf *Config) (map[string]interface{}, error) {
}
var m map[string]interface{}
if err := json.NewDecoder(buf).Decode(&m); err != nil {
return nil, fmt.Errorf("Failure to decode config: %s", err)
return nil, fmt.Errorf("failure to decode config: %s", err)
}
return m, nil
}
2 changes: 1 addition & 1 deletion config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func identityConfig(out io.Writer, nbits int) (Identity, error) {
// TODO guard higher up
ident := Identity{}
if nbits < 1024 {
return ident, errors.New("Bitsize less than 1024 is considered unsafe.")
return ident, errors.New("bitsize less than 1024 is considered unsafe")
}

fmt.Fprintf(out, "generating %v-bit RSA keypair...", nbits)
Expand Down

0 comments on commit 365ec7f

Please sign in to comment.