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

Return error strings instead of hard exiting #115

Open
rpreen opened this issue Dec 1, 2023 · 0 comments
Open

Return error strings instead of hard exiting #115

rpreen opened this issue Dec 1, 2023 · 0 comments

Comments

@rpreen
Copy link
Member

rpreen commented Dec 1, 2023

At the moment there are various places where an error message is printed to stdout and exit(EXIT_FAILURE) is called. It would be better if a string containing an error message was returned by the function (or NULL if successful) so that the calling function can decide how to handle the error. By allowing this to propagate back up to the Python wrapper it could throw an exception with the error instead of terminating; stdout doesn't seem to be captured by jupyter notebooks for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant