mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 19:47:52 +00:00
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>
This commit is contained in:
parent
2601fcfc1e
commit
86b5ab162c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user