diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-09-09 13:17:58 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-09-09 13:17:58 +0200 |
| commit | 928dd90ae878d10b05b3fb734b184dc7f6a6a046 (patch) | |
| tree | 73c324cd4e2c758faffe6c7168e800f37f055b1c /src/netops.c | |
| parent | b8a8191fed7463c1811ecc603513f19a06d32373 (diff) | |
| download | libgit2-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.c | 2 |
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; } |
