mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +02:00
main: print error and exit when we fail to find a conf file
This commit is contained in:
parent
d1c958aae0
commit
aba597d5cc
1 changed files with 4 additions and 0 deletions
4
main.c
4
main.c
|
@ -140,6 +140,10 @@ main(int argc, const char *const *argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
char *config_path = get_config_path();
|
char *config_path = get_config_path();
|
||||||
|
if (config_path == NULL) {
|
||||||
|
LOG_ERR("could not find a configuration (see man 5 f00bar)");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
struct bar *bar = load_bar(config_path);
|
struct bar *bar = load_bar(config_path);
|
||||||
free(config_path);
|
free(config_path);
|
||||||
|
|
Loading…
Add table
Reference in a new issue