From acdfb9160727eb52d5091182e44fdf8982087f11 Mon Sep 17 00:00:00 2001 From: Eugene Kudelevsky Date: Tue, 7 Feb 2012 20:29:15 +0400 Subject: [PATCH] compilation errors instead of log errors --- .../android/compiler/AndroidRenderscriptCompiler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/android/src/org/jetbrains/android/compiler/AndroidRenderscriptCompiler.java b/plugins/android/src/org/jetbrains/android/compiler/AndroidRenderscriptCompiler.java index 02fd7b7b83aa..9dff00c3448f 100644 --- a/plugins/android/src/org/jetbrains/android/compiler/AndroidRenderscriptCompiler.java +++ b/plugins/android/src/org/jetbrains/android/compiler/AndroidRenderscriptCompiler.java @@ -171,10 +171,12 @@ public class AndroidRenderscriptCompiler implements SourceGeneratingCompiler { final File genRootDir = new File(genRootPath); if (genRootDir.exists()) { if (!FileUtil.delete(genRootDir)) { - LOG.error("Cannot delete directory " + genRootPath); + context.addMessage(CompilerMessageCategory.ERROR, "Cannot delete directory " + genRootPath, null, -1, -1); + return EMPTY_GENERATION_ITEM_ARRAY; } if (!genRootDir.mkdir()) { - LOG.error("Cannot create directory " + genRootPath); + context.addMessage(CompilerMessageCategory.ERROR, "Cannot create directory " + genRootPath, null, -1, -1); + return EMPTY_GENERATION_ITEM_ARRAY; } }