Skip to content

Commit

Permalink
improved error on deploy with no network
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed Nov 14, 2012
1 parent 4f952da commit 2988236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/meteor/deploy.js
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2988236

Please sign in to comment.