summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-09-09 13:17:58 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-09-09 13:17:58 +0200
commit928dd90ae878d10b05b3fb734b184dc7f6a6a046 (patch)
tree73c324cd4e2c758faffe6c7168e800f37f055b1c /src/netops.c
parentb8a8191fed7463c1811ecc603513f19a06d32373 (diff)
downloadlibgit2-928dd90ae878d10b05b3fb734b184dc7f6a6a046.tar.gz
netops: store the error if gitno_send fails
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netops.c b/src/netops.c
index 3e6b93552..4e6fe9dfc 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;
}