From 10a51cf09df1440742957d0d3a9f32d535757986 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 29 Sep 2015 20:04:08 -0700 Subject: [PATCH] Fix checkA --- cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index 4a314fd..7650567 100644 --- a/cloudron.js +++ b/cloudron.js @@ -261,7 +261,7 @@ Cloudron.prototype.checkA = function (callback) { if (error) return callback(error); if (records.length !== 1) return callback(new Error('Got ' + JSON.stringify(records) + ' A records. Expecting 1 length array')); - if (records[0][0] !== that._box.ip) return callback(new Error('Bad A record. ' + records[0][0])); + if (records[0] !== that._box.ip) return callback(new Error('Bad A record. ' + records[0] + '. Expecting ' + that._box.ip)); callback(); });