Skip to content

Commit 2afc25f

Browse files
committed
Improve error message
1 parent a261973 commit 2afc25f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

junit-platform-engine/src/main/java/org/junit/platform/engine/EngineDiscoveryRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ default EngineDiscoveryListener getDiscoveryListener() {
8787
}
8888

8989
default OutputDirectoryProvider getOutputDirectoryProvider() {
90-
throw new JUnitException("OutputDirectoryProvider not available");
90+
throw new JUnitException(
91+
"OutputDirectoryProvider not available; probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the classpath/module path.");
9192
}
9293
}

0 commit comments

Comments
 (0)