diff options
Diffstat (limited to 'svl/source/fsstor/fsstorage.cxx')
-rw-r--r-- | svl/source/fsstor/fsstorage.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx index c1350f86270a..3d21e23c3b0c 100644 --- a/svl/source/fsstor/fsstorage.cxx +++ b/svl/source/fsstor/fsstorage.cxx @@ -1015,9 +1015,11 @@ sal_Bool SAL_CALL FSStorage::hasElements() { throw; } - catch (const uno::Exception&) + catch (const uno::Exception& ex) { - throw uno::RuntimeException(); + css::uno::Any anyEx = cppu::getCaughtException(); + throw lang::WrappedTargetRuntimeException( ex.Message, + nullptr, anyEx ); } } |