Minor: Fix bug introduced by the refactoring

This commit is contained in:
Alexey Sedunov
2017-08-02 13:03:40 +03:00
parent c5613888eb
commit 3c0a4a0abf
@@ -190,8 +190,8 @@ public class K2JSCompiler extends CLICompiler<K2JSCompilerArguments> {
} }
File outputPostfixFile = null; File outputPostfixFile = null;
if (arguments.getOutputPrefix() != null) { if (arguments.getOutputPostfix() != null) {
outputPostfixFile = new File(arguments.getOutputPrefix()); outputPostfixFile = new File(arguments.getOutputPostfix());
if (!outputPostfixFile.exists()) { if (!outputPostfixFile.exists()) {
messageCollector.report(ERROR, "Output postfix file '" + arguments.getOutputPostfix() + "' not found", null); messageCollector.report(ERROR, "Output postfix file '" + arguments.getOutputPostfix() + "' not found", null);
return ExitCode.COMPILATION_ERROR; return ExitCode.COMPILATION_ERROR;