better error message

This commit is contained in:
Bas Leijdekkers
2011-04-11 14:54:03 +02:00
parent a5b15ac1e7
commit f97f689d50
2 changed files with 2 additions and 1 deletions
@@ -1265,7 +1265,7 @@ public class HighlightUtil {
return null;
}
HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, expression, JavaErrorMessages.message("expression.expected"));
HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, expression, JavaErrorMessages.message("array.initializer.not.allowed"));
QuickFixAction.registerQuickFixAction(info, new AddNewArrayExpressionFix(expression));
return info;
}