[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - desktop/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 30 13:53:10 UTC 2018
desktop/source/app/app.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit e2e7cf25f6fc89807a82e3a51abdd41c68c6c314
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Oct 22 18:39:09 2018 +0300
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Tue Oct 30 14:52:42 2018 +0100
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 at collabora.com>
Tested-by: Michael Meeks <michael.meeks at collabora.com>
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);
}
More information about the Libreoffice-commits
mailing list