[Libreoffice-commits] online.git: wsd/Storage.cpp

Pranav Kant pranavk at collabora.co.uk
Tue Aug 22 14:20:45 UTC 2017


 wsd/Storage.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit da4fe86b829a06c128e637c5fab34f16402d2956
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Tue Aug 22 19:49:20 2017 +0530

    wsd: Do not throw when cannot save local file out of jail
    
    Change-Id: Ie155823536694facb8bfcfe49f6386a7fc845689

diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp
index db047aba..c571ecb1 100644
--- a/wsd/Storage.cpp
+++ b/wsd/Storage.cpp
@@ -320,7 +320,7 @@ StorageBase::SaveResult LocalStorage::saveLocalFileToStorage(const Authorization
     {
         LOG_ERR("copyTo(\"" << _jailedFilePath << "\", \"" << _uri.getPath() <<
                 "\") failed: " << exc.displayText());
-        throw;
+        return StorageBase::SaveResult::FAILED;
     }
 
     return StorageBase::SaveResult::OK;


More information about the Libreoffice-commits mailing list