Merge remote-tracking branch 'origin/GP-1173-dragonmacher-error-message'

into patch (Closes #3246)
This commit is contained in:
ghidra1 2021-08-02 17:15:46 -04:00
commit 8f0248e2af

View File

@ -115,7 +115,7 @@ public class EnumDataType extends GenericDataType implements Enum {
bitGroups = null;
checkValue(value);
if (nameMap.containsKey(valueName)) {
throw new IllegalArgumentException(name + " already exists in this enum");
throw new IllegalArgumentException(valueName + " already exists in this enum");
}
nameMap.put(valueName, value);
List<String> list = valueMap.get(value);