[Libreoffice-commits] core.git: desktop/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Oct 22 15:43:46 UTC 2018
desktop/source/app/app.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 362fc24e96813e7e55513a696d2f3161a7a29e57
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Oct 22 18:39:09 2018 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Oct 22 18:42:06 2018 +0300
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
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);
}
More information about the Libreoffice-commits
mailing list