Commit 20657b83 authored by hybrid's avatar hybrid

Fix error message for missing DISPLAY variable.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2230 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6ece9e0d
......@@ -202,7 +202,10 @@ bool CIrrDeviceLinux::createWindow()
if (!display)
{
os::Printer::log("Error: Need running XServer to start Irrlicht Engine.", ELL_ERROR);
os::Printer::log("Could not open display", XDisplayName(0), ELL_ERROR);
if (XDisplayName(0)[0])
os::Printer::log("Could not open display", XDisplayName(0), ELL_ERROR);
else
os::Printer::log("Could not open display, set DISPLAY variable", ELL_ERROR);
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment