-
Notifications
You must be signed in to change notification settings - Fork 86
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
standardizing error handling #2062
Conversation
Signed-off-by: Amber Torrise <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #2062 +/- ##
==========================================
- Coverage 91.09% 91.08% -0.02%
==========================================
Files 638 638
Lines 18840 18837 -3
Branches 3924 3917 -7
==========================================
- Hits 17162 17157 -5
- Misses 1677 1679 +2
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
packages/cli/__tests__/zosfiles/__unit__/upload/dtp/DirToPds.handler.unit.test.ts
Fixed
Show fixed
Hide fixed
Signed-off-by: Amber Torrise <[email protected]>
…yExistence Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggested a modification in the changelog.
Signed-off-by: Amber Torrise <[email protected]>
I am a little confused about the objective of the story itself. A user specifies a non-existent file and the error message implies that the command has an internal logic failure. It blames the command handler for the error and displays a stack trace. Should we instead capture the root error message 'no such file or directory' and display it in a format similar to the more user friendly format utilized for REST request errors that we used in a pull request several months ago? |
Note that the current full zos-files error message is:
The format above was created in response to another issue about unfriendly error messages. Perhaps we should make the zos-jobs messages adhere to the format used by zos-files? |
Quality Gate failedFailed conditions |
After looking at this some more it seems like the best thing to do would be to not show a stack trace for the file not found error. Currently, in the latest versions of V2 and V3, the |
Closing in favor of #2078 |
What It Does
Brings standard error handling from zosjobs to zosfiles
How to Test
Review Checklist
I certify that I have:
Additional Comments
Output for
zowe jobs submit lf noexist
Output for
zowe jobs submit lf noexist