summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-10-26 14:17:06 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-10-29 14:01:08 +0100
commit8ffe4753a1e6a5c2def23e371ac7701ec3e8d866 (patch)
tree7dbd77b1b28260ef00aa229e7f5b4c4c714a3843
parent84e12b16c689328a9367b867bc4e2237270745c6 (diff)
unopkg: Write to console when no UNO available
Change-Id: I159b7e85f53e33c5359cca83aa958387d888f6a2 Reviewed-on: https://gerrit.libreoffice.org/62391 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> (cherry picked from commit d2a4fac09bc6d17b85fd34a3f0777ecc5e3bd286) (cherry picked from commit 40c4c0f17ad5871861b64014fc7f8ae04d3f8971)
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_app.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
index bb8c6b63dd9c..2b4008459324 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
@@ -609,7 +609,8 @@ extern "C" int unopkg_main()
}
catch (const LockFileException & e)
{
- logger->log(LogLevel::SEVERE, "Exception occurred: $1$", e.Message);
+ // No logger since it requires UNO which we don't have here
+ dp_misc::writeConsoleError(e.Message + "\n");
bNoOtherErrorMsg = true;
}
catch (const css::uno::Exception & e ) {