signature.c: Move to new error handling mechanism

This commit is contained in:
Jakob Pfender 2011-05-19 14:59:10 +02:00 committed by Vicent Marti
parent c0cd9d506b
commit 005564967f

View 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;