diff --git a/cloudron.js b/cloudron.js index ff238e9..de552b1 100644 --- a/cloudron.js +++ b/cloudron.js @@ -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) {