-
Notifications
You must be signed in to change notification settings - Fork 467
Throw PSIEXCEPTION instead of exit(1) in DPD #3117
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
Conversation
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.
Great change. However, I would propose eliminating the old print statements, since the same information is in the error message.
I have considered doing that, but I am not entirely comfortable with it because Until a reliable solution is found for the error messages getting swallowed up on some platforms, I am reluctant to remove the traditional error messages. But in principle I agree completely. |
PS: In #2997 I added the band-aid workaround of printing to |
The cause of missing error messages is likely the improper use of |
I think there are two separate issues here. One is the improper use of In #2970, the part of PSIO that was raising the error was already using |
(cherry picked from commit c149519)
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.
lgtm, thanks for the cleanup!
Description
A lot of error exits in
libdpd
are implemented withexit(1)
or equivalent. This makes debugging harder, and results in less informative error messages when a test fails in the CI environment.This PR modernizes all
exit(1)
error exits inlibdpd
intothrow PSIEXCEPTION
.User API & Changelog headlines
Dev notes & details
exit(1)
andexit(PSI_RETURN_FAILURE)
calls inlibdpd
have been replaced with athrow PSIEXCEPTION
.Checklist
Status