From 3c0a4a0abf24dcdce3568a9ab7c3f21dc2496f0c Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Wed, 2 Aug 2017 13:03:40 +0300 Subject: [PATCH] Minor: Fix bug introduced by the refactoring --- .../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 cd9519c909e..e82405b7893 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java @@ -190,8 +190,8 @@ public class K2JSCompiler extends CLICompiler { } File outputPostfixFile = null; - if (arguments.getOutputPrefix() != null) { - outputPostfixFile = new File(arguments.getOutputPrefix()); + if (arguments.getOutputPostfix() != null) { + outputPostfixFile = new File(arguments.getOutputPostfix()); if (!outputPostfixFile.exists()) { messageCollector.report(ERROR, "Output postfix file '" + arguments.getOutputPostfix() + "' not found", null); return ExitCode.COMPILATION_ERROR;