Merge pull request #397 from lethosor/fatal-error-stdout

Print fatal errors to stdout on Linux/OS X
develop
expwnent 2014-11-18 00:24:24 -05:00
commit d83c32a0c5
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
}