Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Output error message when XOpenDisplay() fails #616
I don't think gracefully is good, after all it's a serious error and the app should not quit normally. The idea is also that a debugger is triggered if this happens during development.
But you're right, undefined behavior (null pointer dereferencing) is not ideal. Thinking about alternatives,