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 pushing with invalid annotation flags #1215

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

improve error message when pushing with invalid annotation flags #1215

qweeah opened this issue Dec 26, 2023 · 1 comment · Fixed by #1243
Assignees
Labels
ux User experience related
Milestone

Comments

@qweeah
Copy link
Contributor

qweeah commented Dec 26, 2023

Current behavior and output:

$ oras push --annotation "key:value" ghcr.io/library/alpine:3.9
Error: missing key in `--annotation` flag: key:value

Suggested error message:

$ oras push --annotation "key:value" ghcr.io/library/alpine:3.9
Error: annotation value doesn't match the required format.
Try --annotation "key=value"  
@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
@wangxiaoxuan273
Copy link
Contributor

I'd like to work on this issue.

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

Successfully merging a pull request may close this issue.

2 participants