From 86b5ab162cbc16aa303a38b85e6c063426568787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 28 Jun 2011 16:08:46 +0200 Subject: [PATCH] git_config_add_file should rethrow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise, the information about why there was an error gets lost. Signed-off-by: Carlos Martín Nieto --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index a5e27dd61..730917634 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)