Commit 86b5ab16 by Carlos Martín Nieto Committed by Vicent Marti

git_config_add_file should rethrow

Otherwise, the information about why there was an error gets lost.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent 2601fcfc
......@@ -127,7 +127,7 @@ int git_config_add_file(git_config *cfg, git_config_file *file, int priority)
assert(cfg && file);
if ((error = file->open(file)) < GIT_SUCCESS)
return git__throw(error, "Failed to open config file");
return git__rethrow(error, "Failed to open config file");
internal = git__malloc(sizeof(file_internal));
if (internal == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment