From adea6723ba9d29a104ca626b72cf21eda2f44323 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sat, 7 Mar 2015 14:04:13 -0500 Subject: [PATCH 1/2] Better error for ECONNREFUSED --- src/Docker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Docker.js b/src/Docker.js index a867317e52..e15e60f4b3 100644 --- a/src/Docker.js +++ b/src/Docker.js @@ -48,7 +48,7 @@ var Docker = { tryCount += 1; yield Promise.delay(delay); if (tryCount > tries) { - throw new Error(err); + throw new Error('Cannot connect to the Docker Engine. Either the VM is not responding or it may be blocked by a VPN connection: ' + err.message); } continue; } From 9f05b315b8c3a75b7f2b40b3de1c51f88789c9f7 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sat, 7 Mar 2015 21:34:15 -0500 Subject: [PATCH 2/2] Small tweak --- src/Docker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Docker.js b/src/Docker.js index e15e60f4b3..36ad6c069e 100644 --- a/src/Docker.js +++ b/src/Docker.js @@ -48,7 +48,7 @@ var Docker = { tryCount += 1; yield Promise.delay(delay); if (tryCount > tries) { - throw new Error('Cannot connect to the Docker Engine. Either the VM is not responding or it may be blocked by a VPN connection: ' + err.message); + throw new Error('Cannot connect to the Docker Engine. Either the VM is not responding or the connection may be blocked (VPN or Proxy): ' + err.message); } continue; }