Print fatal errors to stdout on Linux/OS X

develop
lethosor 2014-11-17 15:11:46 -05:00
parent 97b44d5898
commit a003ce7394
1 changed files with 2 additions and 0 deletions

@ -966,6 +966,8 @@ void Core::fatal (std::string output, bool deactivate)
#ifndef LINUX_BUILD
out << "Check file stderr.log for details\n";
MessageBox(0,out.str().c_str(),"DFHack error!", MB_OK | MB_ICONERROR);
#else
cout << "DFHack fatal error: " << out.str() << std::endl;
#endif
}