sw/source/core/unocore/unosett.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 105f057f5b994b7d79a55ca719240839c2d45b54
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Fri Jun 30 12:30:50 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Jun 30 14:28:31 2023 +0200

    Throw correct exception, and do not warn
    
    Change-Id: Ia4548d377e6f9104b5f2b3a7a6cebe4928f51506
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153801
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/source/core/unocore/unosett.cxx 
b/sw/source/core/unocore/unosett.cxx
index 43dd2cbe2ffa..50a53080bb56 100644
--- a/sw/source/core/unocore/unosett.cxx
+++ b/sw/source/core/unocore/unosett.cxx
@@ -1878,8 +1878,7 @@ void SwXNumberingRules::SetPropertiesToNumFormat(
         else
         {
             // Invalid property name
-            SAL_WARN("sw.uno", "Unknown/incorrect property " << rProp.Name << 
", failing");
-            throw uno::RuntimeException("Unknown/incorrect property " + 
rProp.Name);
+            throw beans::UnknownPropertyException("Unknown property " + 
rProp.Name);
         }
     }
     if(!bWrongArg && (pSetBrush || pSetSize || pSetVOrient))

Reply via email to