Permalink
Browse files

improved error on deploy with no network

  • Loading branch information...
1 parent 4f952da commit 298823686f5207010dd17c2a928c7ede5e53a475 @dgreensp dgreensp committed Nov 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/meteor/deploy.js
@@ -99,7 +99,8 @@ var bundle_and_deploy = function (site, app_dir, opt_debug, opt_tests,
var rpc = meteor_rpc('deploy', 'POST', site, opts, function (err, body) {
if (err) {
- process.stderr.write("\nError deploying application: " + body + "\n");
+ var errorMessage = (body || ("Connection error (" + err.message + ")"));
+ process.stderr.write("\nError deploying application: " + errorMessage + "\n");
process.exit(1);
}

0 comments on commit 2988236

Please sign in to comment.