From 67a9ae4dd80cefe04225d4fe5f7b5ff3ce3bcca8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 29 Sep 2014 23:18:26 +0200 Subject: Improve debug output Change-Id: Iba0c35a5bc07ac7b67186c3eeae1a2c926a6bc69 --- bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bridges/source/cpp_uno/msvc_win32_intel') diff --git a/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx b/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx index 371254722073..0927cf6f6a1a 100644 --- a/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx +++ b/bridges/source/cpp_uno/msvc_win32_intel/cpp2uno.cxx @@ -240,12 +240,18 @@ static typelib_TypeClass __cdecl cpp_mediate( pThis); typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr(); - OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, - "### illegal vtable index!" ); if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex) { - throw RuntimeException("illegal vtable index!", - (XInterface *)pThis ); + 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)), + (XInterface *)pThis ); } // determine called method -- cgit