mirror of
https://github.com/processing/processing4.git
synced 2026-02-17 12:25:39 +01:00
Merge pull request #4451 from rzats/fix-4228
PDEX: Add friendlier error message for HidingEnclosingType
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user