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 of oras cp #1469

Open
1 task
qweeah opened this issue Aug 6, 2024 · 0 comments
Open
1 task

improve error message of oras cp #1469

qweeah opened this issue Aug 6, 2024 · 0 comments
Labels
ux User experience related
Milestone

Comments

@qweeah
Copy link
Contributor

qweeah commented Aug 6, 2024

What happened in your environment?

Currently the error output of oras cp is confusing

oras cp --to-distribution-spec v1.1-referrers-tag $source_repo $target_repo
...
Error response from registry: sha256:0f58dd64e1e2b1f2c96e2b2cab30402540724a399061b035051534808114144a: not found	

What did you expect to happen?

The returned error should clarify

  1. Where the error occurs in (which target, source or destination)
  2. What operation causes the error.

Depends on oras-project/oras-go#677

How can we reproduce it?

Run oras cp with error returned during copying.

What is the version of your ORAS CLI?

v1.2.0

What is your OS environment?

Ubuntu 20.04

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.
@qweeah qweeah added bug Something isn't working triage New issues or PRs to be acknowledged by maintainers and removed triage New issues or PRs to be acknowledged by maintainers labels Aug 6, 2024
@qweeah qweeah added this to the v1.3.0 milestone Aug 6, 2024
@shizhMSFT shizhMSFT added ux User experience related and removed bug Something isn't working labels Sep 3, 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

2 participants