Skip to content

Commit

Permalink
Issue #4903 - catch Throwable instead of RuntimeException
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed May 26, 2020
1 parent c41560c commit 5c63b0e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@ else if (Endpoint.class.isAssignableFrom(endpoint))

return metadata;
}
catch (RuntimeException e)
catch (Throwable t)
{
throw new DeploymentException(e.getMessage(), e);
if (t instanceof DeploymentException)
throw t;
throw new DeploymentException(t.getMessage(), t);
}
}

Expand Down

0 comments on commit 5c63b0e

Please # to comment.