diff --git a/pygmt/clib/loading.py b/pygmt/clib/loading.py index be14b65b296..c98da792e82 100644 --- a/pygmt/clib/loading.py +++ b/pygmt/clib/loading.py @@ -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