Merge pull request #2630 from vabr-g/vabr-g-dlerror-patch

Include dlerror() in handling of failed dlopen()
This commit is contained in:
erwincoumans 2020-02-21 17:26:13 -08:00 committed by GitHub
commit 3f4299d588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,7 @@ struct InternalData2
if (!m_x11_library)
{
// TODO: Properly handle this error.
fprintf(stderr, "Error opening X11 library %s\n", X11_LIBRARY);
fprintf(stderr, "Error opening X11 library %s: %s\n", X11_LIBRARY, dlerror());
exit(EXIT_FAILURE);
}