-
Notifications
You must be signed in to change notification settings - Fork 0
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
Better error handling in inner functions #9
Labels
enhancement
New feature or request
Comments
Part of this is better checking of output in all of the |
jakewilliami
added a commit
that referenced
this issue
Aug 29, 2022
Addresses #9. This will hopefully avoid any problems that arise in any internal functions used. Note that further error handling should be implemented, as, for example, checking for package or bundle still seg faults when you give it the root directory.
jakewilliami
added a commit
that referenced
this issue
Aug 29, 2022
jakewilliami
added a commit
that referenced
this issue
Aug 29, 2022
jakewilliami
added a commit
that referenced
this issue
Sep 11, 2022
Ensure that the lstat call succeeded based on its return code. The expected return code is 0, otherwise it errored. Addresses #9.
Another aspect to this is ensuring that we check the expected return code (e.g. 5ce791e). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should handle errors better in internal functions. E.g., see
SystemError
andBase.IOError
. See also howrealpath
handles non-existent paths.The worst case scenario is that we seg fault, as we are passing around pointers within C calls. Let's try to avoid this (at the very least) at all costs.
The text was updated successfully, but these errors were encountered: