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

improve error message when attaching with invalid spec option #1213

Closed
Tracked by #1218
qweeah opened this issue Dec 26, 2023 · 1 comment
Closed
Tracked by #1218

improve error message when attaching with invalid spec option #1213

qweeah opened this issue Dec 26, 2023 · 1 comment
Labels
ux User experience related
Milestone

Comments

@qweeah
Copy link
Contributor

qweeah commented Dec 26, 2023

Current behavior and output:

$ oras attach --artifact-type oras/test localhost:5000/command/images:foobar --distribution-spec v1.0
Error: unknown distribution specification flag: v1.0

Suggested error message:

$ oras attach --artifact-type oras/test localhost:5000/sample/images:foobar --distribution-spec ???
Error: unknown distribution specification flag: "v1.0". 
Available options: v1.1-referrers-api, v1.1-referrers-tag
@qweeah qweeah added the ux User experience related label Dec 26, 2023
@qweeah qweeah mentioned this issue Dec 26, 2023
9 tasks
@qweeah qweeah added this to the v1.2.0 milestone Dec 26, 2023
@qweeah
Copy link
Contributor Author

qweeah commented Jan 19, 2024

Closed by #1221

@qweeah qweeah closed this as completed Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux User experience related
Projects
None yet
Development

No branches or pull requests

1 participant