mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
compilation errors instead of log errors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user