From f55b2684b01bd402d75bc21231f970546962bee0 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Sep 2024 01:39:29 +0200 Subject: Use errx() --- src/parser.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3