Skip to content

Commit

Permalink
Fix casing in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
joelthompson committed Sep 15, 2018
1 parent 91fa6fb commit b86f6cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/logical/aws/path_config_rotate_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ func (b *backend) pathConfigRotateRootUpdate(ctx context.Context, req *logical.R
return nil, err
}
if rawRootConfig == nil {
return nil, fmt.Errorf("No configuration found for config/root")
return nil, fmt.Errorf("no configuration found for config/root")
}
var config rootConfig
if err := rawRootConfig.DecodeJSON(&config); err != nil {
return nil, errwrap.Wrapf("Error reading root configuration: {{err}}", err)
return nil, errwrap.Wrapf("error reading root configuration: {{err}}", err)
}

if config.AccessKey == "" || config.SecretKey == "" {
Expand Down Expand Up @@ -99,7 +99,7 @@ func (b *backend) pathConfigRotateRootUpdate(ctx context.Context, req *logical.R
}
_, err = client.DeleteAccessKey(&deleteAccessKeyInput)
if err != nil {
return nil, errwrap.Wrapf("Error deleting old access key: {{err}}", err)
return nil, errwrap.Wrapf("error deleting old access key: {{err}}", err)
}

return &logical.Response{
Expand Down

0 comments on commit b86f6cc

Please sign in to comment.