type mismatch error

This commit is contained in:
Manindra Moharana
2014-07-07 21:49:31 +05:30
parent e5d8521369
commit 84d2280af4

View File

@@ -143,6 +143,12 @@ public class ErrorMessageSimplifier {
result = "I don't recognize the name \"" + args[0] + "\"";
}
break;
case IProblem.TypeMismatch:
if (args.length > 1) {
result = "You can't assign a \"" + getSimpleName(args[0])
+ "\" type to a \"" + getSimpleName(args[1]) + "\" type";
}
break;
}
log("Simplified Error Msg: " + result);