ScriptElementImageProvider.getBaseImageDescriptor() handles LOCAL_VARIABLE
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/ScriptElementImageProvider.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/ScriptElementImageProvider.java
index 2eb912b..51f564c 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/ScriptElementImageProvider.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/ScriptElementImageProvider.java
@@ -243,6 +243,9 @@
 						useLightIcons(renderFlags));
 			}
 
+			case IModelElement.LOCAL_VARIABLE:
+				return DLTKPluginImages.DESC_OBJS_LOCAL_VARIABLE;
+
 			case IModelElement.PACKAGE_DECLARATION:
 				return DLTKPluginImages.DESC_OBJS_PACKDECL;
 
@@ -290,8 +293,11 @@
 				// return DLTKPluginImages.DESC_OBJS_JAVA_MODEL;
 				return null;
 			}
-			Assert.isTrue(false,
-					DLTKUIMessages.ScriptImageLabelprovider_assert_wrongImage);
+			Assert.isTrue(
+					false,
+					DLTKUIMessages.ScriptImageLabelprovider_assert_wrongImage
+							+ "(" + element.getElementType() + ","
+							+ element.getElementName() + ")");
 
 			return DLTKPluginImages.DESC_OBJS_GHOST;
 		} catch (ModelException e) {