sc/source/ui/collab/sendfunc.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 171bb4d0cd214ad436c691b1683c7cb7139c5920
Author: Michael Meeks <michael.me...@suse.com>
Date:   Fri Mar 23 13:13:30 2012 +0000

    tubes: more helpful exception printing on file load failure

diff --git a/sc/source/ui/collab/sendfunc.cxx b/sc/source/ui/collab/sendfunc.cxx
index 50d6649..771ee8b 100644
--- a/sc/source/ui/collab/sendfunc.cxx
+++ b/sc/source/ui/collab/sendfunc.cxx
@@ -327,9 +327,10 @@ IMPL_LINK( ScDocFuncRecv, ReceiveFileCallback, 
rtl::OUString *, pStr )
                 rDocShell.GetBaseModel(), css::uno::UNO_QUERY_THROW );
         xLoad->load( aLoadArgs );
     }
-    catch ( css::uno::Exception& )
+    catch ( css::uno::Exception& e )
     {
-        fprintf( stderr, "exception when loading !\n" );
+        fprintf( stderr, "exception when loading '%s' !\n",
+                 rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 
).getStr() );
     }
 
     return 0;
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to