Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- for absolute paths, show the error message if file exists. this way users always get diagnostics when they try a known path. - for DL_LOAD_PATH/DL_EXT permutations: if a file exists, show error. these paths should be complete by construction (ie, include extension). if dlopen fails and the file exists, best to let the user know. - when throwing an error, first print the dlerror, then free the handle, then throw the error. this is not idea, but is the simplest way I can think of to actually show the error without leaking the errmsg. - free the handle before throwing an error on Windows also add some comments.
- Loading branch information