From 91a9d13e4b004455fc911440ddd232c694d4e052 Mon Sep 17 00:00:00 2001
From: Deuce <shurd@sasktel.net>
Date: Mon, 28 Dec 2020 14:48:37 -0500
Subject: [PATCH] Log the error on first-byte recv() timeout.

---
 exec/load/binkp.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/load/binkp.js b/exec/load/binkp.js
index e2a05882cd..b9503466b4 100644
--- a/exec/load/binkp.js
+++ b/exec/load/binkp.js
@@ -1058,7 +1058,7 @@ BinkP.prototype.recvFrame = function(timeout)
 		ret = new this.Frame();
 		i = this.sock.recv(1, timeout);
 		if (i === null) {
-			log(LOG_INFO, "Error in recv() of first byte of packet header, timeout = " + timeout);
+			log(LOG_INFO, "Error "+this.sock.error+" ("+this.sock.error_str+") in recv() of first byte of packet header, timeout = " + timeout);
 			this.sock.close();
 			this.sock = undefined;
 			return undefined;
-- 
GitLab