diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-04 01:39:29 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-04 01:39:29 +0200 |
commit | f55b2684b01bd402d75bc21231f970546962bee0 (patch) | |
tree | 9ee184f73acd962e48df6a0207cb178a4ce3129a /src | |
parent | 60493a315417e996238f24f4375ecef945898fea (diff) |
Use errx()
Diffstat (limited to 'src')
-rw-r--r-- | src/parser.y | 3 |
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); } |