This commit is contained in:
Girish Ramakrishnan 2016-05-30 09:33:39 -07:00
parent 4a654e5533
commit 8c4968ae29
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ Cloudron.prototype.reboot = function () {
Cloudron.prototype.checkTimeZone = function (tz) {
var res = request.get(this._origin + '/api/v1/settings/time_zone').query({ access_token: this._credentials.accessToken }).end();
common.verifyResponse2xx(res, 'Could not query timezone');
if (tz !== res.body.timeZone) throw new Error('timezone does not match. expecting: %s got %s', tz, result.body.timeZone);
if (tz !== res.body.timeZone) throw new Error('timezone does not match. expecting: ' + tz + ' got ' + res.body.timeZone);
};
Cloudron.prototype.checkA = function (callback) {