]> git.proxmox.com Git - libgit2.git/commitdiff
signature.c: Move to new error handling mechanism
authorJakob Pfender <jpfender@elegosoft.com>
Thu, 19 May 2011 12:59:10 +0000 (14:59 +0200)
committerVicent Marti <tanoku@gmail.com>
Mon, 23 May 2011 18:38:37 +0000 (21:38 +0300)
src/signature.c

index 62bd28b9a8bdb3017f6d6670d1b2740690ded86e..683264108b80d9d8a3da6aa4f0bd68b51fe56a6c 100644 (file)
@@ -205,7 +205,7 @@ int git_signature__parse(git_signature *sig, const char **buffer_out,
        sig->when.time = (time_t)time;
 
        if (parse_timezone_offset(buffer, &offset) < GIT_SUCCESS)
-               return GIT_EOBJCORRUPTED;
+               return git__throw(GIT_EOBJCORRUPTED, "Failed to parse signature. Could not parse timezone offset");
        
        sig->when.offset = offset;