Skip to content

Commit 89708ac

Browse files
committed
Add throwable class name to the error message when this throwable is not serializable and the test is executed in a dedicated JVM
1 parent 564296c commit 89708ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/java/org/quickperf/issue/TestIssue.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ public static TestIssue buildSerializableTestIssueFrom(TestIssue testIssue) {
7272
Throwable cause = searchRootCauseOf(nonSerializableThrowable);
7373

7474
String causeMessage = cause.getMessage();
75+
String className = nonSerializableThrowable.getClass().getCanonicalName();
7576

76-
TestException testException = TestException.buildFrom(causeMessage);
77+
String message = className + ": " + causeMessage;
78+
79+
TestException testException = TestException.buildFrom(message);
7780

7881
return new TestIssue(testException);
7982

0 commit comments

Comments
 (0)