]> git.proxmox.com Git - libgit2.git/commitdiff
git_config_add_file should rethrow
authorCarlos Martín Nieto <cmn@elego.de>
Tue, 28 Jun 2011 14:08:46 +0000 (16:08 +0200)
committerVicent Marti <tanoku@gmail.com>
Tue, 5 Jul 2011 00:32:17 +0000 (02:32 +0200)
Otherwise, the information about why there was an error gets lost.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
src/config.c

index a5e27dd61d5887bc23a5c19b43ff656b96a85b50..730917634ac74a4e1755ac29a4b2b90e8e6a3b3b 100644 (file)
@@ -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)