Skip to content

Commit

Permalink
List valid policies in invalid policy error
Browse files Browse the repository at this point in the history
  • Loading branch information
simpson-ross committed Jun 27, 2023
1 parent 8efdcbf commit 301302e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,5 +511,5 @@ func generatePolicy(policyType, userID string) ([]policy, error) {
return readOnlyPolicy, nil
}

return nil, fmt.Errorf("unable to generate policy for %q", policyType)
return nil, fmt.Errorf("unable to generate policy for %q, valid policy names: [read-only, write-everything]", policyType)
}

0 comments on commit 301302e

Please sign in to comment.