aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-04 01:39:29 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-04 01:39:29 +0200
commitf55b2684b01bd402d75bc21231f970546962bee0 (patch)
tree9ee184f73acd962e48df6a0207cb178a4ce3129a /src
parent60493a315417e996238f24f4375ecef945898fea (diff)
Use errx()
Diffstat (limited to 'src')
-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);
}