oras
oras copied to clipboard
display handlers should be able to output logs
Display handlers take care of formatting the output. It is possible that the output cannot be formatted, and handler need to output logs without terminating the whole execution.
E.g. when fetching a manifest, the content is successfully fetched but cannot be parsed into expected structure: https://github.com/oras-project/oras/blob/6c5e2cfbcf437ac8229af914bf8a7e318ec99caf/cmd/oras/internal/display/metadata/json/manifest_fetch.go#L42-L44 Currently such parsing errors are silently ignored.