Skip to content

Commit

Permalink
[fix] lets not throw an error because we are sane
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed Jul 31, 2014
1 parent 5fe9438 commit 1fc55da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.js/lib/client/apps.js
Expand Up @@ -222,7 +222,7 @@ Apps.prototype.datacenter = function (appName, cloud, callback) {

// Ensure the app is started before we try to set the datacenter.
this.view(appName, function (err, current) {
if (err) throw err;
if (err) return callback(err);

if (!current.config.cloud) {
self.start(appName, executeCloud);
Expand Down

1 comment on commit 1fc55da

@terinjokes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.