Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the error message when PyGMT fails to load the GMT library (#814
) When PyGMT fails to load the GMT library, it raises an error: ``` GMTCLibNotFoundError: Error loading the GMT shared library '/opt/GMT-6.1.1/lib/libgmt.dylib'. ``` However, it's still unclear why it fails. After this PR, the error message will contain the original error message. For example: ``` GMTCLibNotFoundError: Error loading the GMT shared library '/opt/GMT-6.1.1/lib/libgmt.dylib'. dlopen(/opt/GMT-6.1.1/lib/libgmt.dylib, 6): Library not loaded: @rpath/libnetcdf.15.dylib Referenced from: /opt/GMT-6.1.1/lib/libgmt.6.1.1.dylib Reason: image not found. ``` Co-authored-by: Wei Ji <[email protected]>
- Loading branch information