Commit 005564967fcab6d8fa56158a40009985e754cffb

Jakob Pfender 2011-05-19T14:59:10

signature.c: Move to new error handling mechanism

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/signature.c b/src/signature.c
index 62bd28b..6832641 100644
--- a/src/signature.c
+++ b/src/signature.c
@@ -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;