diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-10-22 18:39:09 +0300 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-10-30 14:52:42 +0100 |
commit | e2e7cf25f6fc89807a82e3a51abdd41c68c6c314 (patch) | |
tree | c1dc4a1bb7215b51c478e70853c7c315f181574c /desktop | |
parent | 4b9a35ebebdf8a2bac38775db0819d36685b866d (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
Reviewed-on: https://gerrit.libreoffice.org/62550
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-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 7f0ace481270..bd25d275541e 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -376,6 +376,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); } |