diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 19:23:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 21:02:11 +0200 |
commit | f58ee783eebf74108c1c1dd5f24e6abaa19c4f09 (patch) | |
tree | 34b7ebcb305f4d5b2e54f428fb7acf0e3156d36d /basic/source | |
parent | 669655d146ea87db2df28125b02bcfdfe4ef61d7 (diff) |
Improve ErrorCodeIOException messages
...and clean up some includes.
Change-Id: Ia5843cd38f967722d7173a6c87fba26064e3ffd6
Diffstat (limited to 'basic/source')
-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 ); |