mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 10:03:43 +00:00
signature.c: Move to new error handling mechanism
This commit is contained in:
parent
c0cd9d506b
commit
005564967f
@ -205,7 +205,7 @@ int git_signature__parse(git_signature *sig, const char **buffer_out,
|
|||||||
sig->when.time = (time_t)time;
|
sig->when.time = (time_t)time;
|
||||||
|
|
||||||
if (parse_timezone_offset(buffer, &offset) < GIT_SUCCESS)
|
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;
|
sig->when.offset = offset;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user