desktop/source/deployment/registry/dp_backend.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 905f1b2ed835b9a72905ad7326ecfd4ef1cb304a
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Oct 19 17:11:48 2021 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Oct 19 22:49:53 2021 +0200

    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 <sberg...@redhat.com>

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 (...) {

Reply via email to