Skip to content
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

fix: improve plugin error message #371

Merged
merged 20 commits into from
Jan 18, 2024

Conversation

JeyJeyGao
Copy link
Contributor

@JeyJeyGao JeyJeyGao commented Jan 12, 2024

  • added PluginUnknownError, PluginValidityError, PluginDirectoryError. For each error types, Notation CLI should provide a recommanded suggestion to solve them.
  • improved error message

Resolve part of: notaryproject/notation#824
Resolve part of: notaryproject/notation#867

Signed-off-by: Junjie Gao [email protected]

Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Jan 12, 2024

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (66da1e3) 73.35% compared to head (c2e325b) 73.25%.

Files Patch % Lines
plugin/manager.go 12.50% 7 Missing ⚠️
plugin/errors.go 57.14% 3 Missing ⚠️
plugin/plugin.go 93.10% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #371      +/-   ##
==========================================
- Coverage   73.35%   73.25%   -0.11%     
==========================================
  Files          27       27              
  Lines        2492     2516      +24     
==========================================
+ Hits         1828     1843      +15     
- Misses        524      533       +9     
  Partials      140      140              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

plugin/errors.go Outdated Show resolved Hide resolved
plugin/errors.go Outdated Show resolved Hide resolved
plugin/manager.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
Signed-off-by: Junjie Gao <[email protected]>
@JeyJeyGao JeyJeyGao requested a review from toddysm as a code owner January 15, 2024 02:34
plugin/errors.go Outdated Show resolved Hide resolved
plugin/errors.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
Signed-off-by: Junjie Gao <[email protected]>
plugin/errors.go Outdated Show resolved Hide resolved
plugin/errors.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/plugin.go Outdated Show resolved Hide resolved
plugin/errors.go Outdated Show resolved Hide resolved
plugin/errors.go Outdated Show resolved Hide resolved
plugin/manager.go Outdated Show resolved Hide resolved
plugin/errors.go Outdated Show resolved Hide resolved
plugin/errors.go Outdated Show resolved Hide resolved
plugin/manager.go Outdated Show resolved Hide resolved
plugin/manager.go Outdated Show resolved Hide resolved
plugin/manager.go Outdated Show resolved Hide resolved
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
priteshbandi
priteshbandi previously approved these changes Jan 17, 2024
Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
Copy link
Contributor

@Two-Hearts Two-Hearts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JeyJeyGao JeyJeyGao merged commit d52ca71 into notaryproject:main Jan 18, 2024
7 checks passed
@Two-Hearts Two-Hearts mentioned this pull request Jan 24, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants