Skip to content

add reference details to output errors #1156

@qweeah

Description

@qweeah

What is the version of your ORAS CLI

oras 1.1.0

What would you like to be added?

Some oras commands like oras copy, oras discover and oras attach require user to specify a tag or digest. If not provided, oras would output error information like:

invalid image reference, expecting name:tag|name@digest

oras should output more specific error info like:

no tag or digest when expecting name:tag|name@digest

Why is this needed for ORAS?

It would make error message more friendly to newbie users who are not familiar with concepts like image reference.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions