[Libreoffice-commits] core.git: unotools/source

Caolán McNamara caolanm at redhat.com
Fri Sep 11 02:34:02 PDT 2015


 unotools/source/misc/mediadescriptor.cxx |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

New commits:
commit a0fa0fb57d61e6caa3ecd10fa94806ea9de82b94
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 11 10:32:10 2015 +0100

    downgrade warning, exception on opening a missing file is an expected thing
    
    Change-Id: I3ca2d6af48adb226e0f56d0500c31f19676c6567

diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx
index 78c6482..c757f19 100644
--- a/unotools/source/misc/mediadescriptor.cxx
+++ b/unotools/source/misc/mediadescriptor.cxx
@@ -748,15 +748,17 @@ bool MediaDescriptor::impl_openStreamWithURL( const OUString& sURL, bool bLockFi
                 xInputStream = aContent.openStreamNoLock();
         }
         catch(const css::uno::RuntimeException&)
-            { throw; }
+        {
+            throw;
+        }
         catch(const css::uno::Exception& e)
-            {
-                SAL_WARN(
-                    "unotools.misc",
-                    "caught Exception \"" << e.Message << "\" while opening <"
-                        << sURL << ">");
-                return false;
-            }
+        {
+            SAL_INFO(
+                "unotools.misc",
+                "caught Exception \"" << e.Message << "\" while opening <"
+                    << sURL << ">");
+            return false;
+        }
     }
 
     // add streams to the descriptor


More information about the Libreoffice-commits mailing list