Skip to content

Commit

Permalink
Add more detailed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Nov 16, 2019
1 parent bf03529 commit fd1465d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/path_config_rotate_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ func (b *backend) pathConfigRotateRootWrite(ctx context.Context, req *logical.Re
return nil, fmt.Errorf("no configuration")
}
if cfg.CredentialsRaw == "" {
return nil, fmt.Errorf("configuration does not have credentials")
return nil, fmt.Errorf("configuration does not have credentials - this " +
"endpoint only works with user-provided JSON credentials explicitly " +
"provided via the config/ endpoint")
}

// Parse the credential JSON to extract the email (we need it for the API
Expand Down

0 comments on commit fd1465d

Please sign in to comment.