Don't output "exec() finished with..." error message
It's useless because the result of the compiler is always evident (it outputs either diagnostics or an exception stack trace)
This commit is contained in:
@@ -210,11 +210,7 @@ public abstract class CLICompiler<A extends CommonCompilerArguments> {
|
||||
@NotNull
|
||||
public static ExitCode doMainNoExit(@NotNull CLICompiler compiler, @NotNull String[] args) {
|
||||
try {
|
||||
ExitCode rc = compiler.exec(System.err, args);
|
||||
if (rc != OK) {
|
||||
System.err.println("exec() finished with " + rc + " return code");
|
||||
}
|
||||
return rc;
|
||||
return compiler.exec(System.err, args);
|
||||
}
|
||||
catch (CompileEnvironmentException e) {
|
||||
System.err.println(e.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user