diff --git a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletTestRunner.java b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletTestRunner.java index 01fd0141b..1bb1d4624 100644 --- a/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletTestRunner.java +++ b/protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/runner/ServletTestRunner.java @@ -201,7 +201,9 @@ private void writeObject(Object object, HttpServletResponse response) { try { response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage()); } catch (Exception e2) { - throw new RuntimeException("Could not write to output", e2); + RuntimeException runtimeException = new RuntimeException("Could not write to output", e2); + runtimeException.addSuppressed(e); + throw runtimeException; } } }