[FEATURE] Improved Error Messaging for Nonexistent Namespaces in Shipwright CLI #244
Closed
1 task done
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
Milestone
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 specifies a namespace that either doesn't exist or lacks builds/build runs, the CLI returns only the field headers without any contextual message. This can lead to confusion and frustration for users who are expecting feedback regarding the absence of builds or build runs in the specified namespace.
Describe the solution that you would like.
To enhance the user experience and provide clearer feedback, I would like to propose the implementation of descriptive 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 builds:
"No builds found in namespace 'xyz'. Please initiate a build or verify the namespace."
If the specified namespace exists but contains no build runs:
"No build runs found in namespace 'xyz'. Please start a build run or check the namespace."
Describe alternatives you have considered.
No response
Anything else?
The text was updated successfully, but these errors were encountered: