Skip to content

Commit

Permalink
Fail the execution if the result looks like an error
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Aug 18, 2024
1 parent 7df58ef commit e6fbf73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/runner/src/main/java/org/enso/runner/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,9 @@ private void runMain(
if (!res.isNull()) {
var textRes = res.isString() ? res.asString() : res.toString();
println(textRes);
if (res.isException()) {
throw exitFail();
}
}
}
} catch (PolyglotException e) {
Expand Down

0 comments on commit e6fbf73

Please sign in to comment.