diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-10-25 17:45:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-10-26 08:36:57 +0200 |
commit | cdb05e22d1173f3e0232b237e811dc183a36fd07 (patch) | |
tree | 7abc550147b87e070961ef0cd404551dd8ff691d /desktop | |
parent | e8920c600eb2fef047ecd8226f07da283d7033bb (diff) |
Improve error message
Change-Id: Icdbb60525f858a2a0002a5e6f599eb6a6954a9dd
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/manager/dp_manager.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx index 894999efe105..bedc5013933c 100644 --- a/desktop/source/deployment/manager/dp_manager.cxx +++ b/desktop/source/deployment/manager/dp_manager.cxx @@ -436,15 +436,12 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create( catch (const RuntimeException &) { throw; } - catch (const Exception &) { + catch (const Exception & e) { Any exc( ::cppu::getCaughtException() ); - ::rtl::OUStringBuffer buf; - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("[context=\"") ); - buf.append( context ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( - "\"] caught unexpected exception!") ); throw lang::WrappedTargetRuntimeException( - buf.makeStringAndClear(), Reference<XInterface>(), exc ); + ("[context=\"" + context + "\"] caught unexpected " + + exc.getValueType().getTypeName() + ": " + e.Message), + Reference<XInterface>(), exc ); } } |