fix(parser): error message now displayed on stderr
This commit is contained in:
parent
666517e3c1
commit
07e7d83c60
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
|||
peek_token(ctx); \
|
||||
if (token == NULL) \
|
||||
{ \
|
||||
puts("Internal error: cannot get the following token"); \
|
||||
perror("Internal error: cannot get the following token"); \
|
||||
return NULL; \
|
||||
}
|
||||
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
pop_token(ctx); \
|
||||
if (token == NULL) \
|
||||
{ \
|
||||
puts("Internal error: cannot get the following token"); \
|
||||
perror("Internal error: cannot get the following token"); \
|
||||
return NULL; \
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue