1
0
Fork 0

additional output for debugging

This commit is contained in:
jsteemann 2017-06-06 10:47:37 +02:00
parent cc821c6216
commit 96a5a5885c
2 changed files with 7 additions and 0 deletions

View File

@ -237,6 +237,7 @@ void Logger::log(char const* function, char const* file, long int line,
// additionally log these errors to the debug output window in MSVC so
// we can see them during development
OutputDebugString(message.c_str());
OutputDebugString("\r\n");
}
#endif

View File

@ -352,6 +352,12 @@ bool ProgramOptions::fail(std::string const& message) {
std::cerr << "Error while processing " << _context << ":" << std::endl;
failNotice(message);
std::cerr << std::endl;
#ifdef _WIN32
// additionally log these errors to the debug output window in MSVC so
// we can see them during development
OutputDebugString(message.c_str());
OutputDebugString("\r\n");
#endif
return false;
}