From 0980001752703819f4c7ffd871efee6e7c234b03 Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Thu, 29 Jul 2021 06:12:57 -0300 Subject: [PATCH] #65: Log errno when socket access fails (#66) Fixes #65 --- src/exasol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exasol.c b/src/exasol.c index 0cb99354..5b09f0d0 100644 --- a/src/exasol.c +++ b/src/exasol.c @@ -505,7 +505,7 @@ SEXP asyncRODBCQueryStart(SEXP slotA, SEXP chan, SEXP query, SEXP writerA) { } len = recv(t->fd, &data, 1, MSG_WAITALL); if (len != 1) { - error("Could not read header."); + error("Could not read header. errno=%d", errno); goto error; } line[pos++] = data;