ruby: slicc action error fix

Small fix to the State Machine error message when duplicate actions are defined.
This commit is contained in:
Brad Beckmann
2009-11-18 13:55:58 -08:00
parent cc2db929cb
commit 994169327a

View File

@@ -68,7 +68,7 @@ class StateMachine(Symbol):
# Check for duplicate action
for other in self.actions.itervalues():
if action.ident == other.ident:
a.warning("Duplicate action definition: %s" % a.ident)
action.warning("Duplicate action definition: %s" % action.ident)
action.error("Duplicate action definition: %s" % action.ident)
if action.short == other.short:
other.warning("Duplicate action shorthand: %s" % other.ident)