mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
on win32 show errors in messageboxes
This commit is contained in:
6
EU07.cpp
6
EU07.cpp
@@ -371,6 +371,9 @@ int main(int argc, char *argv[])
|
||||
catch (std::runtime_error e)
|
||||
{
|
||||
ErrorLog(e.what());
|
||||
#ifdef _WIN32
|
||||
MessageBox(NULL, e.what(), "MaSzyna", MB_OK);
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -406,6 +409,9 @@ int main(int argc, char *argv[])
|
||||
catch (std::runtime_error e)
|
||||
{
|
||||
ErrorLog(e.what());
|
||||
#ifdef _WIN32
|
||||
MessageBox(NULL, e.what(), "MaSzyna", MB_OK);
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
catch( std::bad_alloc const &Error ) {
|
||||
|
||||
Reference in New Issue
Block a user