Commit 2d840502 by Russell Belfer

Throw first error in chain, not rethrow.

This is the first time this error is throw, so use git__throw instead
of git__rethrow.
parent 948431aa
......@@ -120,7 +120,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__rethrow(error, "Failed to open config file");
return git__throw(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