mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 13:20:07 +00:00
Include dlerror() in handling of failed dlopen()
X11OpenGLWindow::X11OpenGLWindow() ends up calling dlopen() to get libX11. When this fails, it only reports that it failed, and what filename it was looking for. This commit adds dlerror() to the error message, which makes investigating failures easier.
This commit is contained in:
parent
b06cdd5fc1
commit
dd8fcad6d8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user