-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve user friendlyness error for listing members in a data set #935
Comments
@dkelosky do you think we should open a z/OSMF RFE to improve this error message? |
Potentially, as I read this though, I think we have a good message already. The problem is that it’s buried by a bunch of other messages. Are you interested in only seeing the “details” @Joe-Winchester ? |
I agree there is a good message there, but it's wrapped in a quite a bit of chaff. By comparison with other CLIs when a mistake is made there is usually a one-liner, e.g
In the example of `zowe files list all-members "WINCJ.JCL" the current echo to the user has "Command Error" and "Error Details" that get colored red in my mac terminal and look like a low level crash. Including the "HTTP(S) error status "404" received" also feels like low level debug info that a user can't really do a lot about. What if you just echo'd the details:
The message Likewise `zowe files list uss /u/bob' emits
This could be simplified to
and so forth. Maybe have some kind of "messageResponse=DEBUG/INFO" value that can be set as a Zowe parm in case someone does want to drill down into low level REST debugging ? |
I think it's a neat idea. If we print out a short version of errors, we can also echo how to enable verbose messaging. All we need now are a bunch of 👍 |
For this particular error, I agree. I would like to see a sampling of other common errors, with and without the details. The "Review request details" section has helped in various situations, especially with connection details (e.g. mistyped host/port). |
@dkelosky @Joe-Winchester @MikeBauerCA Basically, I've edited catching an error in packages/zosfiles/src/methods/list/List.ts to throw only the short error message unless an option --debug-response or --dr is specified with the command. If the option is included, then it shows all the REST API level info. |
Thanks for the tag; I'll add a comment to the PR. |
Thank you for raising this issue. |
After some discussion, here are a list of things we could do to accomplish this.
Only implementing the number 1 item makes this a |
Thank you for raising this enhancement request. |
Problem
When using
zowe files list all-members <PDS-NAME>
if the PDS is invalid the error message includes information about 404 codes and rc: 8, which can make it look as though there is a runtime CLI problem rather than just a user error.The text was updated successfully, but these errors were encountered: