diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-10-22 18:39:09 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-10-22 18:42:06 +0300 |
commit | 362fc24e96813e7e55513a696d2f3161a7a29e57 (patch) | |
tree | c7db73fe120f80ab64e65491ea45b04d0489b919 /desktop/source/app | |
parent | d2aee5ab5a89efc8e5e42eb124afb80be637f379 (diff) |
If we have encountered a "FATAL ERROR" we can afford writing a line to stderr
There is no guarantee that if something is wrong, the
Application::ShowNativeErrorBox() will manage to show anything, is
there? And this code might be invoked in a program that doesn't even
have any GUI. So at least try to show the message on stderr, too.
Change-Id: Ieb11a6f490c26c773af646ed7e9c3cf6ccb4a669
Diffstat (limited to 'desktop/source/app')
-rw-r--r-- | desktop/source/app/app.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index bbe4b2ee286d..ba244fd8c268 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -372,6 +372,7 @@ void FatalError(const OUString& sMessage) OUString sTitle = sProductKey + " - Fatal Error"; Application::ShowNativeErrorBox (sTitle, sMessage); + std::cerr << sTitle << ": " << sMessage << std::endl; _exit(EXITHELPER_FATAL_ERROR); } |