-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin error messages not straightforward for users #404
Comments
Thanks @Two-Hearts for reporting this issue. In the short term, I suggest improving the error message to be more descriptive and actionable as follows:
In the long term, as this is a plugin-specific problem, we can improve the experience in the plugin side. |
This part is generated in notation-go. We need a PR to fix it.
I simplified the example in the second part to make it easier for users to understand. This will done in Azure/notation-azure-kv#181 |
@FeynmanZhou This issue is about the first half of the error message, |
@Two-Hearts Yes. We just need to improve the first part (line) of the error message in notation-go. The second part (line) is an actionable recommendation for users which could be improved in the plugin side. Does the first part look good to you? |
Yep, the first part LGTM. @FeynmanZhou |
What is not working as expected?
As a user of Notation CLI, the following command:
notation sign --id $Id --plugin $my_plugin $my_image
could return the following error:
Error: describe-key command failed: VALIDATION_ERROR: {plugin specific error details}
This error message is not very user friendly:
describe-key command
stand for?VALIDATION_ERROR
?What did you expect to happen?
Move the details into verbose/debug logs and a more user-friendly error message might be:
Error: invalid plugin request: {plugin specific error details}
How can we reproduce it?
notation sign --id $Id --plugin $my_plugin $my_image
with a misconfiguredid
.The related error message is generated in
notation-go/plugin/plugin.go
.Describe your environment
applies to all env
What is the version of your notation-go Library?
notation-go v1.1.0 with notation CLI v1.0.0+
The text was updated successfully, but these errors were encountered: