diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2011-06-28 16:08:46 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-07-05 02:32:17 +0200 |
commit | 86b5ab162cbc16aa303a38b85e6c063426568787 (patch) | |
tree | 5788257c5f2fb1d4779406bf5d81dccd2c215961 | |
parent | 2601fcfc1e1c22874d266dc7086532fa52f44dd5 (diff) | |
download | libgit2-86b5ab162cbc16aa303a38b85e6c063426568787.tar.gz |
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>
-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 a5e27dd6..73091763 100644 --- a/src/config.c +++ b/src/config.c @@ -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) |