Commit 928dd90a by Carlos Martín Nieto

netops: store the error if gitno_send fails

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent b8a8191f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment