diff --git a/lib/client/deploy.js b/lib/client/deploy.js index 7117269..d3fcdd8 100644 --- a/lib/client/deploy.js +++ b/lib/client/deploy.js @@ -227,6 +227,7 @@ Deployment.prototype.getCurrentUser = function(fn) { jar: false }, function(err, res, user) { if (err) return fn(err); + if (res.statusCode === 404) return fn(new Error("Could not connect")); if (user) user = JSON.parse(user); if (!user) return fn(new Error("Not authenticated")); fn(null, user); diff --git a/lib/resources/dashboard/deployments.html b/lib/resources/dashboard/deployments.html index da93a3e..32b54c2 100644 --- a/lib/resources/dashboard/deployments.html +++ b/lib/resources/dashboard/deployments.html @@ -1,9 +1,15 @@