diff options
author | Omar Polo <op@omarpolo.com> | 2021-04-28 12:43:17 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-04-28 12:43:17 +0000 |
commit | 48b69cb2dcb0e50409c531d9052c2da134a82eff (patch) | |
tree | a4f307c269a3e83912ef17b60bb3f0a9f58167ba /parse.y | |
parent | d89a9060f812301850ae4c3f975d475e31fba0a7 (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.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 * |