Skip to content

Commit b872fc8

Browse files
committed
Only wrap non-RuntimeExceptions
See gh-828
1 parent 96501cd commit b872fc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-restdocs-core/src/test/java/org/springframework/restdocs/templates/StandardTemplateResourceResolverTests.java

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ private <T> T doWithThreadContextClassLoader(ClassLoader classLoader, Callable<T
110110
return action.call();
111111
}
112112
catch (Exception ex) {
113+
if (ex instanceof RuntimeException) {
114+
throw (RuntimeException) ex;
115+
}
113116
throw new RuntimeException(ex);
114117
}
115118
finally {

0 commit comments

Comments
 (0)