summaryrefslogtreecommitdiff
path: root/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-29 23:18:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-29 23:18:26 +0200
commit67a9ae4dd80cefe04225d4fe5f7b5ff3ce3bcca8 (patch)
tree6f4fde8e76559bf4b5ee72a02cc7ce1d5739ef30 /bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx
parent18539f46e96c53d5c33217df5b311cd95f6a0caf (diff)
Improve debug output
Change-Id: Iba0c35a5bc07ac7b67186c3eeae1a2c926a6bc69
Diffstat (limited to 'bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx')
-rw-r--r--bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx
index 555bee10481d..e4fe5be4bf48 100644
--- a/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx
@@ -239,10 +239,19 @@ extern "C" typelib_TypeClass cpp_vtable_call(
typelib_InterfaceTypeDescription * pTD = pCppI->getTypeDescr();
- OSL_ENSURE( nFunctionIndex < pTD->nMapFunctionIndexToMemberIndex, "### illegal vtable index!\n" );
if ( nFunctionIndex >= pTD->nMapFunctionIndexToMemberIndex )
- throw RuntimeException("Illegal vtable index!",
- reinterpret_cast<XInterface *>( pCppI ) );
+ {
+ SAL_WARN(
+ "bridges",
+ "illegal " << OUString::unacquired(&pTypeDescr->aBase.pTypeName)
+ << " vtable index " << nFunctionIndex << "/"
+ << pTypeDescr->nMapFunctionIndexToMemberIndex);
+ throw RuntimeException(
+ ("illegal " + OUString::unacquired(&pTypeDescr->aBase.pTypeName)
+ + " vtable index " + OUString::number(nFunctionIndex) + "/"
+ + OUString::number(pTypeDescr->nMapFunctionIndexToMemberIndex)),
+ reinterpret_cast<XInterface *>( pCppI ) );
+ }
// Determine called method
int nMemberPos = pTD->pMapFunctionIndexToMemberIndex[nFunctionIndex];