From b1bdad343d8bedde492cbe6832094f3c1f34f39a Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 21 Sep 2016 17:29:25 +0200 Subject: [PATCH] Print activation attempt status --- cloudron.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloudron.js b/cloudron.js index d095749..5dfe58f 100644 --- a/cloudron.js +++ b/cloudron.js @@ -119,6 +119,8 @@ Cloudron.prototype.activate = function (user) { if (res.statusCode === 409) { debug('Response error statusCode:%s error:%s body:%j', res.statusCode, res.error, res.body); throw new Error('Cloudron already activated! This should not happen'); + } else { + debug('Response error will retry. statusCode:%s error:%s body:%j', res.statusCode, res.error, res.body); } }