diff options
Diffstat (limited to 'unotools/source/misc/mediadescriptor.cxx')
-rw-r--r-- | unotools/source/misc/mediadescriptor.cxx | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index 1e37fe199cad..b9b4610012c3 100644 --- a/unotools/source/misc/mediadescriptor.cxx +++ b/unotools/source/misc/mediadescriptor.cxx @@ -521,9 +521,7 @@ bool MediaDescriptor::impl_addInputStream( bool bLockFile ) } catch(const css::uno::Exception& ex) { - SAL_WARN( - "unotools.misc", - "invalid MediaDescriptor detected: " << ex.Message); + SAL_WARN("unotools.misc", "invalid MediaDescriptor detected: " << ex); return false; } } @@ -632,17 +630,13 @@ bool MediaDescriptor::impl_openStreamWithURL( const OUString& sURL, bool bLockFi { throw; } catch(const css::ucb::ContentCreationException& e) { - SAL_WARN( - "unotools.misc", - "caught ContentCreationException \"" << e.Message + SAL_WARN("unotools.misc", "caught \"" << e << "\" while opening <" << sURL << ">"); return false; // TODO error handling } catch(const css::uno::Exception& e) { - SAL_WARN( - "unotools.misc", - "caught Exception \"" << e.Message << "\" while opening <" + SAL_WARN("unotools.misc", "caught \"" << e << "\" while opening <" << sURL << ">"); return false; // TODO error handling } @@ -683,9 +677,7 @@ bool MediaDescriptor::impl_openStreamWithURL( const OUString& sURL, bool bLockFi // break this method. if (!pInteraction->wasWriteError() || bModeRequestedExplicitly) { - SAL_WARN( - "unotools.misc", - "caught Exception \"" << e.Message + SAL_WARN("unotools.misc", "caught \"" << e << "\" while opening <" << sURL << ">"); // If the protocol is webdav, then we need to treat the stream as readonly, even if the // operation was requested as read/write explicitly (the WebDAV UCB implementation is monodirectional @@ -751,8 +743,7 @@ bool MediaDescriptor::impl_openStreamWithURL( const OUString& sURL, bool bLockFi { SAL_INFO( "unotools.misc", - "caught Exception \"" << e.Message << "\" while opening <" - << sURL << ">"); + "caught " << e << " while opening <" << sURL << ">"); return false; } } |