[Libreoffice-commits] .: desktop/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Fri Jul 13 06:27:54 PDT 2012


 desktop/source/app/app.cxx |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 91404d1d379fbdc3b1c7286dafd2519b68b08c97
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jul 13 15:27:13 2012 +0200

    Hide information about failure during very early startup a little less
    
    Change-Id: I4ecbcf7e19c642bbb98f66d127050361fdb6136a

diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 812613a..3ee805b 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"
@@ -712,9 +716,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;
         }
     }


More information about the Libreoffice-commits mailing list