diff options
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 6efbb67e4270..817f76f33829 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -130,6 +130,7 @@ #include <officecfg/Office/Common.hxx> #include <comphelper/propertysequence.hxx> #include <vcl/weld.hxx> +#include <tools/diagnose_ex.h> #include <com/sun/star/io/WrongFormatException.hpp> @@ -1311,7 +1312,8 @@ SfxMedium::LockFileResult SfxMedium::LockOrigFileOnDemand( bool bLoading, bool b } catch ( const uno::Exception& ) { - SAL_WARN( "sfx.doc", "Locking exception: WebDAV while trying to lock the file" ); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN( "sfx.doc", "Locking exception: WebDAV while trying to lock the file " << exceptionToString(ex) ); } return eResult; } @@ -1539,7 +1541,8 @@ SfxMedium::LockFileResult SfxMedium::LockOrigFileOnDemand( bool bLoading, bool b } catch( const uno::Exception& ) { - SAL_WARN( "sfx.doc", "Locking exception: high probability, that the content has not been created" ); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN( "sfx.doc", "Locking exception: high probability, that the content has not been created " << exceptionToString(ex) ); } return eResult; @@ -3001,7 +3004,8 @@ void SfxMedium::UnlockFile( bool bReleaseLockStream ) } catch ( uno::Exception& ) { - SAL_WARN( "sfx.doc", "Locking exception: WebDAV while trying to lock the file" ); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN( "sfx.doc", "Locking exception: WebDAV while trying to lock the file " << exceptionToString(ex) ); } } return; |