summaryrefslogtreecommitdiffstats
path: root/stoc
diff options
context:
space:
mode:
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/criface.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx
index 254f1a35267d..a6b4395c8dc1 100644
--- a/stoc/source/corereflection/criface.cxx
+++ b/stoc/source/corereflection/criface.cxx
@@ -650,7 +650,10 @@ Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > &
if (! bAssign)
{
IllegalArgumentException aExc(
- "cannot coerce argument type during corereflection call!",
+ "cannot coerce argument type during corereflection call:"
+ "\narg no.: " + OUString::number(nPos)
+ + " expected: \"" + OUString(pTD->pTypeName)
+ + "\" actual: \"" + OUString(pCppArgs[nPos].getValueTypeRef()->pTypeName),
*o3tl::doAccess<Reference<XInterface>>(rObj), (sal_Int16)nPos );
// cleanup