Merge pull request #4451 from rzats/fix-4228

PDEX: Add friendlier error message for HidingEnclosingType
This commit is contained in:
Ben Fry
2016-05-08 20:14:48 -04:00
2 changed files with 6 additions and 0 deletions

View File

@@ -370,6 +370,7 @@ editor.status.type_mismatch = Type mismatch, "%s" does not match with "%s"
editor.status.unused_variable = The value of the local variable "%s" is not used
editor.status.uninitialized_variable = The local variable "%s" may not have been initialized
editor.status.no_effect_assignment = The assignment to variable "%s" has no effect
editor.status.hiding_enclosing_type = The class "%s" cannot have the same name as your sketch or its' enclosing class
# Footer buttons
editor.footer.errors = Errors

View File

@@ -254,6 +254,11 @@ public class ErrorMessageSimplifier {
result = Language.interpolate("editor.status.no_effect_assignment", args[0]);
}
break;
case IProblem.HidingEnclosingType:
if (args.length > 0) {
result = Language.interpolate("editor.status.hiding_enclosing_type", args[0]);
}
}
//log("Simplified Error Msg: " + result);