Commit c0e6900f6170cd0639bc9bf742833caadf07bc90 Parent: 2818b216b0523d1f0812935a462fcc769f7157b0 Author: mcol <mcol@posteo.net> Date: 2020-11-22 12:03:37 +0000 Committer: mcol <mcol@posteo.net> Committed: 2020-11-22 12:03:37 +0000 Print config errors to WLR_ERROR log level
src/config.c Modified
@@ -112,7 +112,7 @@ wordexp(config, &p, WRDE_NOCMD | WRDE_UNDEF); if (access(p.we_wordv[0], R_OK) == -1) { - wlr_log(WLR_INFO, "%s not accessible. Using defaults.", p.we_wordv[0]); + wlr_log(WLR_ERROR, "%s not accessible. Using defaults.", p.we_wordv[0]); wordfree(&p); return; } @@ -136,7 +136,10 @@ } else if (!strcasecmp(s, "set_modifier")) { if ((s = strtok(NULL, " \t\n\r"))) { int mod = modifier_by_name(s); - server->mod = (mod ? mod : WLR_MODIFIER_LOGO); + if (mod) + server->mod = mod; + else + wlr_log(WLR_ERROR, "Config line %i: invalid modifier name '%s'.", line, s); } } else if (!strcasecmp(s, "zoom_min")) { if ((s = strtok(NULL, " \t\n\r")) && is_decimal(s)) {