netops: store the error if gitno_send fails Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
diff --git a/src/netops.c b/src/netops.c
index 3e6b935..4e6fe9d 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -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;
}