diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-29 23:18:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-29 23:18:26 +0200 |
commit | 67a9ae4dd80cefe04225d4fe5f7b5ff3ce3bcca8 (patch) | |
tree | 6f4fde8e76559bf4b5ee72a02cc7ce1d5739ef30 /bridges/source/cpp_uno/gcc3_solaris_intel | |
parent | 18539f46e96c53d5c33217df5b311cd95f6a0caf (diff) |
Improve debug output
Change-Id: Iba0c35a5bc07ac7b67186c3eeae1a2c926a6bc69
Diffstat (limited to 'bridges/source/cpp_uno/gcc3_solaris_intel')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx index 5957a0db7c9d..87fa906f8fbb 100644 --- a/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno.cxx @@ -244,10 +244,18 @@ static typelib_TypeClass cpp_mediate( 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 |