Skip to content

Commit 4d369ed

Browse files
committed
Remove superfluous exception check
1 parent 2e0c92d commit 4d369ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/kotlin/com/tschuchort/compiletesting/KotlinCompilation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ class KotlinCompilation : AbstractKotlinCompilation<K2JVMCompilerArguments>() {
580580
ExitCode.COMPILATION_ERROR
581581
}
582582
catch (e: Exception) {
583-
if(e is RuntimeException || e is IllegalArgumentException) {
583+
if(e is RuntimeException) {
584584
printDiagnostics()
585585
error(e.toString())
586586
return ExitCode.INTERNAL_ERROR

0 commit comments

Comments
 (0)