Bug 375175 - Minor improvements for E4 DI debugging
diff --git a/bundles/org.eclipse.e4.core.di/build.properties b/bundles/org.eclipse.e4.core.di/build.properties
index 2b112c4..c335cc2 100644
--- a/bundles/org.eclipse.e4.core.di/build.properties
+++ b/bundles/org.eclipse.e4.core.di/build.properties
@@ -3,5 +3,6 @@
 bin.includes = META-INF/,\
                .,\
                plugin.properties,\
-               about.html
+               about.html,\
+               .options
 src.includes = about.html
diff --git a/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java b/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java
index ea130ad..7eac2f4 100644
--- a/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java
+++ b/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java
@@ -385,7 +385,11 @@
 	}
 
 	private void reportUnresolvedArgument(Requestor requestor, int argIndex) {
-		throw new InjectionException(resolutionError(requestor, argIndex));
+		String msg = resolutionError(requestor, argIndex);
+		if (shouldDebug) {
+			LogHelper.logError(msg, null);
+		}
+		throw new InjectionException(msg);
 	}
 
 	private String resolutionError(Requestor requestor, int argIndex) {