open-component-model / ocm

Open Component Model (Software Bill of Delivery) Toolset
https://ocm.software
Apache License 2.0
34 stars 23 forks source link

Improve errors #850

Closed fabianburth closed 2 months ago

fabianburth commented 2 months ago

What this PR does / why we need it:

ocm transfer cv command ignored the -t flag if the ctf already existed. This PR adds documentation to specify that this is intended behavior.

The ocm download command ocm download cv command did not return anything (not even an error) if the requested component version did not exist. This is fixed by this PR.

Which issue(s) this PR fixes:

Fixes https://github.com/open-component-model/ocm-project/issues/203

The nil pointer exception was already fixed with version v0.12.0. But as mentioned above, users got no feedback.