Skip to content

Commit 33b95f4

Browse files
committed
Cleanup: use ProcessStatus.exitCode() in runContext()
1 parent e1fca82 commit 33b95f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/launcher/java/org/truffleruby/launcher/RubyLauncher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private int runContext(Context.Builder builder, CommandLineOptions config) {
342342
} else {
343343
getError()
344344
.println("truffleruby: No such file or directory -- " + config.toExecute + " (LoadError)");
345-
return 1;
345+
return ProcessStatus.exitCode(1);
346346
}
347347
}
348348

@@ -378,7 +378,7 @@ private int runContext(Context.Builder builder, CommandLineOptions config) {
378378
getError().println(
379379
"truffleruby: an exception escaped out of the interpreter - this is an implementation bug");
380380
e.printStackTrace(System.err);
381-
return 1;
381+
return ProcessStatus.exitCode(1);
382382
}
383383
}
384384

0 commit comments

Comments
 (0)