Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-12-12 11:35:52 +0000
committerGerrit Code Review @ Eclipse.org2013-12-12 11:35:52 +0000
commitca69d55b1cb3b5bce7cb8b6d28553c508cbddf87 (patch)
treea3b4f0bb0aca174a6d760f076f9b40736bc49892
parent560d916180e0ea081ef1228270470f6d355177ab (diff)
parent69a350d13804554a18b68cd74667ef7d2a835673 (diff)
downloadorg.eclipse.etrice-ca69d55b1cb3b5bce7cb8b6d28553c508cbddf87.tar.gz
org.eclipse.etrice-ca69d55b1cb3b5bce7cb8b6d28553c508cbddf87.tar.xz
org.eclipse.etrice-ca69d55b1cb3b5bce7cb8b6d28553c508cbddf87.zip
Merge "[gen] added error log message"
-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 1b8695d4a..fbea0386c 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);
}

Back to the top