Fail the execution if the result looks like an error

This commit is contained in:
Jaroslav Tulach 2024-08-18 11:07:46 +02:00
parent 7df58efc3a
commit e6fbf73cfc

View File

@ -893,6 +893,9 @@ public class Main {
if (!res.isNull()) {
var textRes = res.isString() ? res.asString() : res.toString();
println(textRes);
if (res.isException()) {
throw exitFail();
}
}
}
} catch (PolyglotException e) {