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

Improve the error message when PyGMT fails to load the GMT library #814

Merged
merged 8 commits into from
Jan 30, 2021
5 changes: 2 additions & 3 deletions pygmt/clib/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ def load_libgmt():
error = err
if error:
raise GMTCLibNotFoundError(
"Error loading the GMT shared library '{}':".format(
", ".join(lib_fullnames)
)
"Error loading the GMT shared library "
f"{', '.join(lib_fullnames)}.\n {error}."
)
return libgmt

Expand Down