From 81b7e5645c952737894e705851d3be3a2db50542 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 17 Jan 2017 11:41:34 +0100 Subject: [PATCH] This not an error if a cloudron is not yet registered The change avoids scary logs with backtrace --- src/cloudron.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cloudron.js b/src/cloudron.js index a49897af9..934310930 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -495,7 +495,11 @@ 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.INTERNAL_ERROR, 'not registered yet')); + + if (!result.token) { + debug('sendAliveStatus: Cloudron not yet registered'); + return callback(null); + } sendAliveStatusWithAppstoreConfig(backendSettings, result); });