-
Notifications
You must be signed in to change notification settings - Fork 2
Description
When a user makes a datumctl get request and does not provide context the error message that responds is not informative enough to tell the user to change their approach.
datumctl get backends results in
Error from server (Forbidden): backends.gateway.envoyproxy.io is forbidden: User "kwilliams@datum.net" cannot list resource "backends" in API group "gateway.envoyproxy.io" in the namespace "default"`
This could be augmented to have a suggestion, in this case when the user does not provide a --project, or --organization the command is attempting to access things outside of the reach of the user. We could add this information to the error message to help the user realize that they need to be more specific in their request or provide that information to the user when they run the command "Try running --project or --organization to improve your results"