diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-08-13 23:09:30 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-08-13 23:09:30 +0200 |
commit | 5b45911856442ee7cbd451125c47fd13f21db58e (patch) | |
tree | d843bc18e4b777628faec617510d663e5cfaa01a /src/app/app.h | |
parent | a2dd39960b5851f8e62adf59b11b36ba14626468 (diff) | |
download | colobot-5b45911856442ee7cbd451125c47fd13f21db58e.tar.gz colobot-5b45911856442ee7cbd451125c47fd13f21db58e.tar.bz2 colobot-5b45911856442ee7cbd451125c47fd13f21db58e.zip |
Improved error messages
Added some logging and improved error messages displayed to user
Diffstat (limited to 'src/app/app.h')
-rw-r--r-- | src/app/app.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/app.h b/src/app/app.h index 0cfaad2..7991177 100644 --- a/src/app/app.h +++ b/src/app/app.h @@ -131,6 +131,9 @@ public: //! Returns the code to be returned at main() exit int GetExitCode(); + //! Returns the message of error (set to something if exit code is not 0) + const std::string& GetErrorMessage(); + //! Cleans up before exit void Destroy(); @@ -234,6 +237,9 @@ protected: //! Whether debug mode is enabled bool m_debugMode; + //! Message to be displayed as error to the user + std::string m_errorMessage; + //! Current configuration of OpenGL display device Gfx::GLDeviceConfig m_deviceConfig; //! Previous configuration of OpenGL display device |