aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-28 12:43:17 +0000
committerOmar Polo <op@omarpolo.com>2021-04-28 12:43:17 +0000
commit48b69cb2dcb0e50409c531d9052c2da134a82eff (patch)
treea4f307c269a3e83912ef17b60bb3f0a9f58167ba /parse.y
parentd89a9060f812301850ae4c3f975d475e31fba0a7 (diff)
fix some logging
- we can't use log_* or fatal() before logger_init - err -> errx if errno isn't involved
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index df62e81..cc9c998 100644
--- a/parse.y
+++ b/parse.y
@@ -260,7 +260,7 @@ parse_conf(const char *path)
{
config_path = path;
if ((yyin = fopen(path, "r")) == NULL)
- fatal("cannot open config: %s: %s", path, strerror(errno));
+ err(1, "cannot open config: %s", path);
yyparse();
fclose(yyin);
@@ -268,7 +268,7 @@ parse_conf(const char *path)
exit(1);
if (TAILQ_FIRST(&hosts)->domain == NULL)
- fatal("no vhost defined in %s", path);
+ errx(1, "no vhost defined in %s", path);
}
char *