Eugen Martynov
04/25/2023, 11:13 AMcheck(!nonEmptyReports)
It prints output but looks like exit code is still 0ProgramResult
mbonnin
05/01/2023, 2:20 PM_exitProcess_(1)
would work#!/usr/bin/env kotlin
check(false)
Running it:
$ ./toto.main.kts
java.lang.IllegalStateException: Check failed.
$ echo $?
3
Eugen Martynov
05/15/2023, 12:09 PM