diff options
Diffstat (limited to 'basic/source/uno')
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx index 0104fd8e715e..65e9d02b83b8 100644 --- a/basic/source/uno/scriptcont.cxx +++ b/basic/source/uno/scriptcont.cxx @@ -980,7 +980,11 @@ sal_Bool SfxScriptLibraryContainer::implLoadPasswordLibrary { sal_Int32 nError = pStream ? pStream->GetError() : ERRCODE_IO_GENERAL; delete pStream; - throw task::ErrorCodeIOException( OUString(), uno::Reference< uno::XInterface >(), nError ); + throw task::ErrorCodeIOException( + ("utl::UcbStreamHelper::CreateStream failed for \"" + + aCodeStreamName + "\": 0x" + + OUString::number(nError, 16)), + uno::Reference< uno::XInterface >(), nError); } /*sal_Bool bRet = */pMod->LoadBinaryData( *pStream ); @@ -1094,9 +1098,12 @@ sal_Bool SfxScriptLibraryContainer::implLoadPasswordLibrary { sal_Int32 nError = pStream ? pStream->GetError() : ERRCODE_IO_GENERAL; delete pStream; - throw task::ErrorCodeIOException( OUString(), - uno::Reference< uno::XInterface >(), - nError ); + throw task::ErrorCodeIOException( + ("utl::UcbStreamHelper::CreateStream failed" + " for code.bin: 0x" + + OUString::number(nError, 16)), + uno::Reference< uno::XInterface >(), + nError); } /*sal_Bool bRet = */pMod->LoadBinaryData( *pStream ); |