Kaydet (Commit) 1ceb97fd authored tarafından Stephan Bergmann's avatar Stephan Bergmann Kaydeden (comit) Michael Stahl

Avoid a SAL_WARN caused by IllegalArgumentEx now being a RuntimeEx

Change-Id: I6fad4e840cf47b4d41592ff179f66943a4469760
(cherry picked from commit 3d23c626)
Reviewed-on: https://gerrit.libreoffice.org/1997Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst d639a5fe
...@@ -670,6 +670,15 @@ void Package::processPackage_impl( ...@@ -670,6 +670,15 @@ void Package::processPackage_impl(
xCmdEnv ); xCmdEnv );
} }
} }
catch (lang::IllegalArgumentException &) {
Any e(cppu::getCaughtException());
throw deployment::DeploymentException(
((doRegisterPackage
? getResourceString(RID_STR_ERROR_WHILE_REGISTERING)
: getResourceString(RID_STR_ERROR_WHILE_REVOKING))
+ getDisplayName()),
static_cast< OWeakObject * >(this), e);
}
catch (const RuntimeException &e) { catch (const RuntimeException &e) {
SAL_WARN( SAL_WARN(
"desktop.deployment", "desktop.deployment",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment