diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-02-20 01:55:12 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-02-23 18:01:59 +0100 |
commit | caebcd5d12f8d2798f32f72fd0bcfdc12f9f2c4f (patch) | |
tree | 55820d5e1415a47131f2ca37fce9e78da992d2fc /desktop | |
parent | d30b8f9357e9eb505ebff133b24a3d1ce0bdd58f (diff) |
related lp#1419836: provide decent error message
Change-Id: I95387ae6b2ca8f49af87945954e4c418322860be
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/registry/component/dp_component.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx index b3ee90f38d41..d859d043d790 100644 --- a/desktop/source/deployment/registry/component/dp_component.cxx +++ b/desktop/source/deployment/registry/component/dp_component.cxx @@ -1101,8 +1101,17 @@ Reference<XComponentContext> raise_uno_process( ::std::vector<OUString> bootvars = getCmdBootstrapVariables(); args.insert(args.end(), bootvars.begin(), bootvars.end()); - oslProcess hProcess = raiseProcess( - url, comphelper::containerToSequence(args) ); + oslProcess hProcess; + try { + hProcess = raiseProcess( + url, comphelper::containerToSequence(args) ); + } + catch (...) { + OUString sMsg = "error starting process: " + url; + for(auto arg : args) + sMsg += " " + arg; + throw uno::RuntimeException(sMsg); + } try { return Reference<XComponentContext>( resolveUnoURL( connectStr, xContext, abortChannel.get() ), |