mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
config: use config_error_nonbool() instead of custom messages
A few config callbacks use their own custom messages to report an unexpected implicit bool like: [merge "foo"] driver These should just use config_error_nonbool(), so the user sees consistent messages. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
0dda4ce9f6
commit
92cecce0de
@@ -1346,7 +1346,7 @@ static int git_imap_config(const char *var, const char *val,
|
||||
server.port = git_config_int(var, val, ctx->kvi);
|
||||
else if (!strcmp("imap.host", var)) {
|
||||
if (!val) {
|
||||
return error("Missing value for 'imap.host'");
|
||||
return config_error_nonbool(var);
|
||||
} else {
|
||||
if (starts_with(val, "imap:"))
|
||||
val += 5;
|
||||
|
||||
Reference in New Issue
Block a user