From 8a47c36e20915736768888fb4040db6fae2375e4 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 15 Nov 2016 16:59:45 +0100 Subject: [PATCH] CloudronError does not have BILLING_REQUIRED and also doesn't need it --- src/cloudron.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cloudron.js b/src/cloudron.js index 8bbee26f5..1730e64d5 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -347,7 +347,7 @@ function sendHeartbeat() { function sendAliveStatus(callback) { if (typeof callback !== 'function') { callback = function (error) { - if (error && error.reason !== CloudronError.BILLING_REQUIRED && error.reason !== CloudronError.BILLING_REQUIRED) console.error(error); + if (error && error.reason !== CloudronError.INTERNAL_ERROR) console.error(error); else if (error) debug(error); }; } @@ -386,7 +386,7 @@ function sendAliveStatus(callback) { } else { settings.getAppstoreConfig(function (error, result) { if (error) return callback(new CloudronError(CloudronError.INTERNAL_ERROR, error)); - if (!result.token) return callback(new CloudronError(CloudronError.BILLING_REQUIRED)); + if (!result.token) return callback(new CloudronError(CloudronError.INTERNAL_ERROR, 'not registered yet')); sendAliveStatusWithAppstoreConfig(result); });