diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-01-05 15:03:42 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-01-05 15:03:42 -0800 |
commit | 2d8405025d2037ab5d474b5bb5fbff7b346adce2 (patch) | |
tree | 28731e042c5c45b956a631551326b79d2dcf03e1 | |
parent | 948431aa013b010ccf6b7f6811da9209d784c1a0 (diff) | |
download | libgit2-2d8405025d2037ab5d474b5bb5fbff7b346adce2.tar.gz |
Throw first error in chain, not rethrow.
This is the first time this error is throw, so use git__throw instead
of git__rethrow.
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 1338ef3b1..a0ae4cb5b 100644 --- a/src/config.c +++ b/src/config.c @@ -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) |