print errors to, well.. stderr not stdout

This commit is contained in:
speedie 2023-05-18 20:01:22 +02:00
parent f534250e7a
commit 3543f04361
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ void conf_init(void) {
// attempt to read config file to cfg
if (!config_read_file(&cfg, cfgfile)) {
// invalid configuration, but let's try to read it anyway
fprintf(stdout, "spmenu: Invalid configuration.\n");
fprintf(stderr, "spmenu: Invalid configuration.\n");
}
// load options spmenu.window

View file

@ -49,7 +49,7 @@ void theme_load(void) {
// attempt to read theme
if (!config_read_file(&cfg, theme)) {
fprintf(stdout, "spmenu: Invalid theme.\n"); // invalid configuration, but let's try to read it anyway
fprintf(stderr, "spmenu: Invalid theme.\n"); // invalid configuration, but let's try to read it anyway
}
// load options theme.window