From 92a9411040410a16532177d5dde8ca8968bcc12b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 13 Aug 2017 14:01:02 +0200 Subject: log details of exception when we catch std::exception Change-Id: Ibfaba3473b11e24381d5a71a722c021ecde3488b Reviewed-on: https://gerrit.libreoffice.org/41112 Tested-by: Jenkins Reviewed-by: Noel Grandin --- jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jvmfwk') diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx index 8649bd121b89..0c5e26398d9e 100644 --- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx +++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include "sal/main.h" #include "sal/types.h" #include "osl/thread.h" @@ -101,9 +102,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) OString sPaths = getLD_LIBRARY_PATH(aInfo->arVendorData); fprintf(stdout, "%s\n", sPaths.getStr()); } - catch (const std::exception&) + catch (const std::exception& e) { - fprintf(stderr,"javaldx failed!\n"); + std::cerr << "javaldx failed! " << e.what() << std::endl; return -1; } -- cgit