mirror of https://github.com/docker/docs.git
Merge pull request #226 from kitematic/better-error-handling
Better error handling
This commit is contained in:
commit
5785c03fa0
|
@ -48,7 +48,7 @@ var Docker = {
|
||||||
tryCount += 1;
|
tryCount += 1;
|
||||||
yield Promise.delay(delay);
|
yield Promise.delay(delay);
|
||||||
if (tryCount > tries) {
|
if (tryCount > tries) {
|
||||||
throw new Error(err);
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue