From 5b45911856442ee7cbd451125c47fd13f21db58e Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Mon, 13 Aug 2012 23:09:30 +0200 Subject: Improved error messages Added some logging and improved error messages displayed to user --- src/app/app.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/app/app.h') 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 -- cgit v1.2.3-1-g7c22