summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-10-19 17:11:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-10-19 22:49:53 +0200
commit905f1b2ed835b9a72905ad7326ecfd4ef1cb304a (patch)
tree4818b801d1a86eed41b07fe1a8059745ecad08b4 /desktop
parentUse range based for loops (diff)
downloadcore-905f1b2ed835b9a72905ad7326ecfd4ef1cb304a.tar.gz
core-905f1b2ed835b9a72905ad7326ecfd4ef1cb304a.zip
Improve an error message
This was useful in tracking down d425cd604cb4d30862640851b11a31e742d81336 "Revert incompatible ScriptEditor change". Change-Id: Ifc9e262b5860663dd64e5558534170ea0a8c5562 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123825 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index 7f4df142dfd1..6e972744846d 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -657,13 +657,15 @@ void Package::processPackage_impl(
catch (const deployment::DeploymentException &) {
throw;
}
- catch (const Exception &) {
+ catch (const Exception & e) {
Any exc( ::cppu::getCaughtException() );
throw deployment::DeploymentException(
(doRegisterPackage
? DpResId(RID_STR_ERROR_WHILE_REGISTERING)
: DpResId(RID_STR_ERROR_WHILE_REVOKING))
- + getDisplayName(), static_cast<OWeakObject *>(this), exc );
+ + getDisplayName() + ": " + exc.getValueType().getTypeName() + " \"" + e.Message
+ + "\"",
+ static_cast<OWeakObject *>(this), exc );
}
}
catch (...) {