summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-22 22:27:12 -0500
committerpommicket <pommicket@gmail.com>2022-12-22 22:27:12 -0500
commit8a7a3b234980d14c0e668e065914480cef2d1946 (patch)
tree0115ba35ccd574494fd949272b089977a2e0eab3
parent927f3eba4140be1526d51af9ecfc88b72b57dee2 (diff)
don't error on unrecognized color names (in release mode)
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index 887c466..c3e316a 100644
--- a/config.c
+++ b/config.c
@@ -698,7 +698,9 @@ static void config_parse_line(ConfigReader *cfg, Settings *settings, const Confi
config_err(cfg, "'%s' is not a valid color. Colors should look like #rgb, #rgba, #rrggbb, or #rrggbbaa.", value);
}
} else {
+ #if DEBUG
config_err(cfg, "No such color option: %s", key);
+ #endif
}
} break;
case SECTION_KEYBOARD: {