summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorDeep17 <deepoose2011@gmail.com>2022-03-06 18:10:46 -0500
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-03-07 21:19:01 +0100
commit1fb1f0be10b5d6ce3be5bb364b4c9a8eb0d31b54 (patch)
tree93d48b2884585cc2173105aba28d306cbca0e827 /basic
parente2076b31a91d3882f3deeaa5d3d4659da0e4b17c (diff)
tdf#42982: improve UNO API error reporting
Change-Id: I82adf31db09d2157ee8f1c776f33e8a0107c3b51 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131090 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbxmod.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index e9502a29aa13..93feaf984d4d 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -198,7 +198,7 @@ DocObjectWrapper::invoke( const OUString& aFunctionName, const Sequence< Any >&
return m_xAggInv->invoke( aFunctionName, aParams, aOutParamIndex, aOutParam );
SbMethodRef pMethod = getMethod( aFunctionName );
if ( !pMethod.is() )
- throw RuntimeException();
+ throw RuntimeException("DocObjectWrapper::invoke - Could not get the method reference!");
// check number of parameters
sal_Int32 nParamsCount = aParams.getLength();
SbxInfo* pInfo = pMethod->GetInfo();