mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-05 23:14:53 +00:00
netops: store the error if gitno_send fails
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
b8a8191fed
commit
928dd90ae8
@ -140,7 +140,7 @@ int gitno_send(int s, const char *msg, size_t len, int flags)
|
||||
while (off < len) {
|
||||
ret = send(s, msg + off, len - off, flags);
|
||||
if (ret < 0)
|
||||
return GIT_EOSERR;
|
||||
return git__throw(GIT_EOSERR, "Error sending data: %s", strerror(errno));
|
||||
|
||||
off += ret;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user