summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-07-13 15:27:13 +0200
committerEike Rathke <erack@redhat.com>2012-07-13 22:01:43 +0200
commit8cf61d06e2a3f79514322214743230c489080814 (patch)
treedc3da19c9fc6a595694b13ce58bcee132bfd1211 /desktop
parent62a6b49aa78b0d55342e79aad2ebb60d46349b3b (diff)
Hide information about failure during very early startup a little less
Change-Id: I4ecbcf7e19c642bbb98f66d127050361fdb6136a (cherry picked from commit 91404d1d379fbdc3b1c7286dafd2519b68b08c97) Signed-off-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index b7136de52574..8ebccdd228bd 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -26,6 +26,10 @@
*
************************************************************************/
+#include "sal/config.h"
+
+#include <iostream>
+
#include "app.hxx"
#include "desktop.hrc"
#include "cmdlineargs.hxx"
@@ -711,9 +715,11 @@ void Desktop::ensureProcessServiceFactory()
}
catch (const css::uno::Exception& e)
{
- SAL_WARN("desktop", "UNO Exception: " << e.Message);
- // let exceptions escape and tear down the process, it is
- // completely broken anyway
+ // Application::ShowNativeErrorBox would only work after InitVCL, so
+ // all we can realistically do here is hope the user can see stderr:
+ std::cerr << "UNO Exception: " << e.Message << std::endl;
+ // Let exceptions escape and tear down the process, it is completely
+ // broken anyway:
throw;
}
}