summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index 850c9b15f..77598d6a6 100644
--- a/src/config.c
+++ b/src/config.c
@@ -401,13 +401,15 @@ int git_config_get_string(git_config *cfg, const char *name, const char **out)
if (ret == 0)
return 0;
+ /* File backend doesn't set error message on variable
+ * not found */
if (ret == GIT_ENOTFOUND)
continue;
return ret;
}
- giterr_set(GITERR_CONFIG, "Config value '%s' not found", name);
+ giterr_set(GITERR_CONFIG, "Config variable '%s' not found", name);
return GIT_ENOTFOUND;
}