1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 08:55:31 +02:00

b2/lang.y (part): show part ID in error message

This commit is contained in:
Werner Almesberger 2012-06-02 05:54:55 -03:00
parent 69701f4d14
commit ea5732371d

View File

@ -426,7 +426,8 @@ part:
{
$$ = part_add($1, $2);
if ($$->param)
yyerror("parameters already defined");
yyerrorf("%s %s parameters already defined",
$1, $2);
$$->param = $3;
}
;