diff options
author | cbdev <cb@cbcdn.com> | 2020-04-20 20:38:58 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-04-20 20:38:58 +0200 |
commit | 8773fca1f7d2ffed68b6af4967b537d989a1e5b5 (patch) | |
tree | 079cce18262307c244bddd554be2467822a01f64 /backends/maweb.c | |
parent | f053dc36fd515e8d7952e1bdefdc0050226a27c4 (diff) | |
download | midimonster-8773fca1f7d2ffed68b6af4967b537d989a1e5b5.tar.gz midimonster-8773fca1f7d2ffed68b6af4967b537d989a1e5b5.tar.bz2 midimonster-8773fca1f7d2ffed68b6af4967b537d989a1e5b5.zip |
Print platform-specific error messages for socket calls
Diffstat (limited to 'backends/maweb.c')
-rw-r--r-- | backends/maweb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/maweb.c b/backends/maweb.c index 6861d75..2804508 100644 --- a/backends/maweb.c +++ b/backends/maweb.c @@ -774,7 +774,7 @@ static int maweb_handle_fd(instance* inst){ bytes_read = recv(data->fd, data->buffer + data->offset, bytes_left - 1, 0); if(bytes_read < 0){ - LOGPF("Failed to receive: %s", strerror(errno)); + LOGPF("Failed to receive on %s: %s", inst->name, mmbackend_socket_strerror(errno)); //TODO close, reopen return 1; } |