Fix error message in grammar.peg

This commit is contained in:
Chris Masone
2015-09-15 09:16:08 -07:00
parent b2f02c0405
commit e74897c418

View File

@@ -38,7 +38,7 @@ Package <- _ dd:Definition+ _ EOF {
usings = append(usings, d)
case EnumKind, StructKind:
if _, present := named[d.Name]; present {
return nil, fmt.Errorf("Redefinition of enum " + d.Name)
return nil, fmt.Errorf("Redefinition of " + d.Name)
}
named[d.Name] = d
}