aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.y b/src/parser.y
index 878a9a5..ae31d16 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -106,6 +106,5 @@ void
yyerror(const char *s)
{
/* TODO: Get filename */
- fprintf(stderr, "pinocchio: -:%d: %s\n", yylloc.first_line, s);
- exit(EXIT_FAILURE);
+ errx(1, "-:%d: %s\n", yylloc.first_line, s);
}