summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-01-10 08:29:08 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-02-13 02:12:09 +0100
commit6ccc03c93115571776fabce2a74f13770a1d57f9 (patch)
tree677cf819bfdaa607a58468972c4ad3b6cfe4289f /desktop
parent54ce781398c13e6cb37f4d590649f19d10fad89b (diff)
unopkg: Improve error message display
Change-Id: Ic842a3be82094557efde6cc22b11b6567c2ad85b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86519 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> (cherry picked from commit 95f947439638b47a2d1d1fa33b8f70e32293fce9)
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_app.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
index 725067c20925..045ee94ec7ef 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
@@ -188,7 +188,7 @@ Reference<deployment::XPackage> findPackage(
extern "C" int unopkg_main()
{
tools::extendApplicationEnvironment();
- bool bNoOtherErrorMsg = false;
+ bool bShowFailedMsg = true;
OUString subCommand;
bool option_shared = false;
bool option_force = false;
@@ -595,11 +595,11 @@ extern "C" int unopkg_main()
catch (const ucb::CommandFailedException &e)
{
logger->log(LogLevel::SEVERE, "Exception occurred: $1$", e.Message);
- bNoOtherErrorMsg = true;
}
catch (const ucb::CommandAbortedException &)
{
logger->log(LogLevel::SEVERE, "$1$ aborted.", APP_NAME);
+ bShowFailedMsg = false;
}
catch (const deployment::DeploymentException & exc)
{
@@ -610,7 +610,7 @@ extern "C" int unopkg_main()
{
// No logger since it requires UNO which we don't have here
dp_misc::writeConsoleError(e.Message + "\n");
- bNoOtherErrorMsg = true;
+ bShowFailedMsg = false;
}
catch (const css::uno::Exception & e ) {
Any exc( ::cppu::getCaughtException() );
@@ -618,7 +618,7 @@ extern "C" int unopkg_main()
logger->log(LogLevel::SEVERE, "Exception occurred: $1$", e.Message);
logger->log(LogLevel::INFO, " Cause: $1$", comphelper::anyToString(exc));
}
- if (!bNoOtherErrorMsg)
+ if (bShowFailedMsg)
logger->log(LogLevel::SEVERE, "$1$ failed.", APP_NAME);
dp_misc::disposeBridges(xLocalComponentContext);
return 1;