Skip to content

Plugin error messages not straightforward for users #404

@ghost

Description

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:

  1. What does describe-key command stand for?
  2. What is been validated here that caused the 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 misconfigured id.

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+

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions