diff --git a/EU07.cpp b/EU07.cpp index b50c1d7f..3ecdd934 100644 --- a/EU07.cpp +++ b/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 ) { diff --git a/lua.cpp b/lua.cpp index 3315f07f..7565a335 100644 --- a/lua.cpp +++ b/lua.cpp @@ -43,7 +43,11 @@ void lua::interpret(std::string file) int lua::atpanic(lua_State *s) { - ErrorLog(std::string(lua_tostring(s, -1))); + std::string err(lua_tostring(s, -1)); + ErrorLog(err); +#ifdef _WIN32 + MessageBox(NULL, err.c_str(), "MaSzyna", MB_OK); +#endif return 0; }