aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cli/actions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/actions.js b/cli/actions.js
index 119b2ba..7767281 100644
--- a/cli/actions.js
+++ b/cli/actions.js
@@ -66,7 +66,7 @@ function login(uri) {
66 console.log('No such server %s'.red, server.bold); 66 console.log('No such server %s'.red, server.bold);
67 process.exit(1); 67 process.exit(1);
68 } 68 }
69 if (error.code) { 69 if (error && error.code) {
70 console.log('Failed to connect to server %s'.red, server.bold, error.code); 70 console.log('Failed to connect to server %s'.red, server.bold, error.code);
71 process.exit(1); 71 process.exit(1);
72 } 72 }