summaryrefslogtreecommitdiff
path: root/desktop/source/pkgchk/unopkg/unopkg_app.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-01-10 08:29:08 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-01-21 09:35:21 +0100
commit95f947439638b47a2d1d1fa33b8f70e32293fce9 (patch)
tree57e66ba3a6a592afcecbe6cf01352f3e1d99b8a9 /desktop/source/pkgchk/unopkg/unopkg_app.cxx
parentcacb3861ab9c06fec02189f26f9f3988c0b6cdbe (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>
Diffstat (limited to 'desktop/source/pkgchk/unopkg/unopkg_app.cxx')
-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 5600de4619e9..443ccdbe842b 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;