mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 17:20:22 +00:00
Throw first error in chain, not rethrow.
This is the first time this error is throw, so use git__throw instead of git__rethrow.
This commit is contained in:
parent
948431aa01
commit
2d8405025d
@ -120,7 +120,7 @@ int git_config_add_file(git_config *cfg, git_config_file *file, int priority)
|
|||||||
assert(cfg && file);
|
assert(cfg && file);
|
||||||
|
|
||||||
if ((error = file->open(file)) < GIT_SUCCESS)
|
if ((error = file->open(file)) < GIT_SUCCESS)
|
||||||
return git__rethrow(error, "Failed to open config file");
|
return git__throw(error, "Failed to open config file");
|
||||||
|
|
||||||
internal = git__malloc(sizeof(file_internal));
|
internal = git__malloc(sizeof(file_internal));
|
||||||
if (internal == NULL)
|
if (internal == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user