[FEATURE] Enhanced Error Messaging for Nonexistent Build Runs in Shipwright CLI #245
Open
1 task done
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Is there an existing feature request for this?
Is your feature request related to a problem or use-case? Please describe.
Currently, when a user requests logs for a build run from a namespace that doesn't exist or lacks build runs, the CLI returns repeated messages indicating that
. While these messages technically convey the absence of the requested resources, they do not provide clear context or guidance to the user.
Describe the solution that you would like.
To improve user experience and facilitate better understanding, I propose implementing more informative error messages in such scenarios. For example:
If the specified namespace does not exist:
"Error: Namespace 'xyz' not found. Please ensure that the namespace exists and try again."
If the specified namespace exists but contains no build runs:
"Error: No build runs found in namespace 'xyz'. Please initiate a build run or verify the namespace."
If the specified build run is not found in the namespace:
"Error from server (NotFound): Build run 'buildah-golang-build-61855' not found in namespace 'xyz'."
Describe alternatives you have considered.
No response
Anything else?
By incorporating these detailed error messages, users will have better clarity on the status of their requests and can take appropriate actions accordingly. This enhancement would significantly enhance the usability and user-friendliness of the Shipwright CLI.
The text was updated successfully, but these errors were encountered: