summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2013-12-10 11:56:08 (EST)
committerJuergen Haug2013-12-12 06:08:57 (EST)
commit69a350d13804554a18b68cd74667ef7d2a835673 (patch)
tree21523b839692aec8f0251601e8c43c097f4928ca
parent9e7bc7e8513767a6d5ba506cd0209b09e831a840 (diff)
downloadorg.eclipse.etrice-69a350d13804554a18b68cd74667ef7d2a835673.zip
org.eclipse.etrice-69a350d13804554a18b68cd74667ef7d2a835673.tar.gz
org.eclipse.etrice-69a350d13804554a18b68cd74667ef7d2a835673.tar.bz2
[gen] added error log messagerefs/changes/03/19603/4
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java
index 1b8695d..fbea038 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java
@@ -48,6 +48,7 @@ import org.eclipse.xtext.util.CancelIndicator;
import org.eclipse.xtext.validation.CheckMode;
import org.eclipse.xtext.validation.IResourceValidator;
import org.eclipse.xtext.validation.Issue;
+import org.xml.sax.SAXException;
import com.google.inject.Guice;
import com.google.inject.Inject;
@@ -561,6 +562,8 @@ public abstract class AbstractGenerator implements IResourceURIAcceptor {
ok = false;
if (e instanceof FileNotFoundException)
logger.logError("couldn't load '"+uri+"' (file not found)", null);
+ if(e instanceof SAXException)
+ logger.logError("couldn't load '"+uri+"' (maybe unknown or wrong file extension, eTrice file extensions have to be lower case)", null);
else
logger.logError(e.getMessage(), null);
}