svx/source/unodraw/unoshape.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit ab7cdbb1961210ee9b0a6a847878befad8789991
Author:     Muhammet Kara <muhammet.k...@collabora.com>
AuthorDate: Sat Nov 9 13:28:30 2019 +0300
Commit:     Muhammet Kara <muhammet.k...@collabora.com>
CommitDate: Sat Nov 9 17:14:04 2019 +0100

    Add some info to the IllegalArgumentException in SvxShape
    
    Change-Id: I31253a0410299ec2f7fbeb8bb981bdc97c66906c
    Reviewed-on: https://gerrit.libreoffice.org/82350
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Muhammet Kara <muhammet.k...@collabora.com>

diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 4430da8af9c9..29e08997df88 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -2512,7 +2512,12 @@ bool SvxShape::setPropertyValueImpl( const OUString&, 
const SfxItemPropertySimpl
         return false;
     }
     }
-    throw lang::IllegalArgumentException();
+
+    OUString sExceptionMessage (OUStringLiteral("IllegalArgumentException in 
SvxShape::setPropertyValueImpl.")
+                                + " Property Type: " + 
pProperty->aType.getTypeName() + " Property nWID: " + 
OUString::number(pProperty->nWID)
+                                + " Value Type: " + (rValue.hasValue() ? 
rValue.getValueTypeName() : "void (no value)"));
+
+    throw lang::IllegalArgumentException(sExceptionMessage, nullptr, 1);
 }
 
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to