From dd60c7b79f196fa3d6ae79b178e1dc340c6d241c Mon Sep 17 00:00:00 2001 From: Michael Nedzelsky Date: Thu, 11 Jun 2015 14:21:04 +0300 Subject: [PATCH] K2JSCompiler: use INTERNAL_ERROR only for internal problems --- .../cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java b/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java index e894f03582f..2b175dff0e5 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java @@ -88,7 +88,7 @@ public class K2JSCompiler extends CLICompiler { if (arguments.freeArgs.isEmpty()) { messageSeverityCollector.report(CompilerMessageSeverity.ERROR, "Specify at least one source file or directory", NO_LOCATION); - return ExitCode.INTERNAL_ERROR; + return ExitCode.COMPILATION_ERROR; } CompilerConfiguration configuration = new CompilerConfiguration(); @@ -108,7 +108,7 @@ public class K2JSCompiler extends CLICompiler { if (arguments.outputFile == null) { messageSeverityCollector.report(CompilerMessageSeverity.ERROR, "Specify output file via -output", CompilerMessageLocation.NO_LOCATION); - return ExitCode.INTERNAL_ERROR; + return ExitCode.COMPILATION_ERROR; } if (messageSeverityCollector.anyReported(CompilerMessageSeverity.ERROR)) {