mirror of
https://github.com/enso-org/enso.git
synced 2024-10-05 17:17:50 +03:00
Fail the execution if the result looks like an error
This commit is contained in:
parent
7df58efc3a
commit
e6fbf73cfc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user