Skip to content
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

zos_jobs: Return error to user instead of throwing exception #345

Open
john-craig opened this issue Nov 1, 2024 · 2 comments
Open

zos_jobs: Return error to user instead of throwing exception #345

john-craig opened this issue Nov 1, 2024 · 2 comments

Comments

@john-craig
Copy link

Is your feature or enhancement request related to a problem or limitation? Please describe

Currently most zos_jobs functions (e.g. delete_job and get_job_status) throw a RequestError if they are performed against a job name and job ID combination that does not exist. This is pretty inconvenient and should probably just be part of the data returned to the user.

Describe your enhancement idea

Return information about the job that was not found to the in the function response instead of throwing an error.

Describe alternatives you've considered

I have tried catching the error, however at some layer there are still stacktrackes leaking into stderr, which I would really rather not have to look at. I've actually a couple of different methods of suppressing these messages, and none have worked.

Provide any additional context

This is from a tool that is running as a command line interface.

@john-craig john-craig added the enhancement New feature or request label Nov 1, 2024
@github-project-automation github-project-automation bot moved this to New Issues in Zowe CLI Squad Nov 1, 2024
Copy link

github-actions bot commented Nov 1, 2024

Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 5 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.

@zowe-robot zowe-robot moved this from New Issues to Low Priority in Zowe CLI Squad Nov 4, 2024
@JTonda
Copy link

JTonda commented Nov 4, 2024

Research:

  • Verify whether or not error message is clear
  • Stack traces or error information is not automatically output to stderr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Low Priority
Development

No branches or pull requests

2 participants