aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2015-09-08 15:52:15 +0200
committerJohannes Zellner <johannes@nebulon.de>2015-09-08 15:52:15 +0200
commit4f89763120ee40cf1e9ac27b55fa8cc4e7ed51e1 (patch)
treec3dfe18cc4916eb376491607424109fd72336b06
parent9708e37927c32e5517fac08ed63973b4c6862326 (diff)
downloadSurfer-4f89763120ee40cf1e9ac27b55fa8cc4e7ed51e1.tar.gz
Surfer-4f89763120ee40cf1e9ac27b55fa8cc4e7ed51e1.tar.zst
Surfer-4f89763120ee40cf1e9ac27b55fa8cc4e7ed51e1.zip
Check for error object
-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 }