-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix/crashes reported in 345 344 #349
Fix/crashes reported in 345 344 #349
Conversation
I added checks to skip tests when a device does not exist. However, if current device does not exist then that is flagged as a failed test case. |
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.
C API should not throw exceptions at all. We should catch all exceptions.
} catch (runtime_error const &re) { | ||
std::cerr << re.what() << '\n'; | ||
return nullptr; |
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.
Please, do catch(...)
finally. Any uncatched exception will break C API interface.
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.
Let us do that as a follow up along with the overall work needed to improve error handling (#35).
Closes #345
Closes #344
Supersedes #348