summaryrefslogtreecommitdiff
path: root/jvmfwk/plugins
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-08-13 14:01:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-13 20:31:37 +0200
commit92a9411040410a16532177d5dde8ca8968bcc12b (patch)
tree88ec6756e4004d41ac772230797cf40dbb9b1a77 /jvmfwk/plugins
parent3f72879a8e54e18f3ad587f7284b84db592c8d1a (diff)
log details of exception when we catch std::exception
Change-Id: Ibfaba3473b11e24381d5a71a722c021ecde3488b Reviewed-on: https://gerrit.libreoffice.org/41112 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r--jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx5
1 files changed, 3 insertions, 2 deletions
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <iostream>
#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;
}