From 0b6b8873b906609c1135cdd5d13036b6cbf8c014 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 9 Nov 2012 14:18:55 +0400 Subject: [PATCH] Module names in exception messages --- .../jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java b/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java index d77d98c4a02..e3ecee6b8fe 100644 --- a/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java +++ b/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.java @@ -78,7 +78,7 @@ public class KotlinToJVMBytecodeCompiler { @Nullable public static ClassFileFactory compileModule(CompilerConfiguration configuration, Module moduleBuilder, File directory) { if (moduleBuilder.getSourceFiles().isEmpty()) { - throw new CompileEnvironmentException("No source files where defined"); + throw new CompileEnvironmentException("No source files where defined in module " + moduleBuilder.getModuleName()); } CompilerConfiguration compilerConfiguration = configuration.copy(); @@ -89,7 +89,7 @@ public class KotlinToJVMBytecodeCompiler { } if (!source.exists()) { - throw new CompileEnvironmentException("'" + source + "' does not exist"); + throw new CompileEnvironmentException("'" + source + "' does not exist in module " + moduleBuilder.getModuleName()); } compilerConfiguration.add(CommonConfigurationKeys.SOURCE_ROOTS_KEY, source.getPath());