Only wrap non-RuntimeExceptions

See gh-828
This commit is contained in:
Andy Wilkinson
2022-07-15 12:52:19 +01:00
parent 96501cda26
commit b872fc8123

View File

@@ -110,6 +110,9 @@ public class StandardTemplateResourceResolverTests {
return action.call();
}
catch (Exception ex) {
if (ex instanceof RuntimeException) {
throw (RuntimeException) ex;
}
throw new RuntimeException(ex);
}
finally {