From ecc8248af713638f40eea4d7cdce2ee054b93250 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 24 Apr 2020 16:31:55 +0200 Subject: [PATCH] bug fixed --- DataDependencies.js | 2 +- DataSet.js | 2 +- StatusReport.js | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/DataDependencies.js b/DataDependencies.js index 3ea9ea759..731495e8d 100644 --- a/DataDependencies.js +++ b/DataDependencies.js @@ -70,7 +70,7 @@ function onInitilized(err) { if (err.result !== global.DEFAULT_OK_RESPONSE.result) { - logger.write(MODULE_NAME, "[ERROR] initialize -> onInitilized -> err = "+ err.stack); + logger.write(MODULE_NAME, "[ERROR] initialize -> onInitilized -> err = "+ JSON.stringify(err)); alreadyCalledBack = true; callBackFunction(err); diff --git a/DataSet.js b/DataSet.js index 066e6f7fc..a55029ab6 100644 --- a/DataSet.js +++ b/DataSet.js @@ -118,8 +118,8 @@ exports.newDataSet = function newDataSet(BOT, logger) { } } - callBackFunction(global.DEFAULT_FAIL_RESPONSE); logger.write(MODULE_NAME, "[ERROR] initialize -> Initialization Failed because we could not find where the data of this dataset is located within the network. Check the logs for more info."); + callBackFunction(global.DEFAULT_FAIL_RESPONSE); } catch (err) { logger.write(MODULE_NAME, "[ERROR] initialize -> err = "+ err.stack); diff --git a/StatusReport.js b/StatusReport.js index 4648c1a94..888ec2e67 100644 --- a/StatusReport.js +++ b/StatusReport.js @@ -159,9 +159,8 @@ } } - callBackFunction(global.DEFAULT_FAIL_RESPONSE); logger.write(MODULE_NAME, "[ERROR] initialize -> Initialization Failed because we could not find where the data of this status report is located within the network. Check the logs for more info."); - + callBackFunction(global.DEFAULT_FAIL_RESPONSE); } catch (err) { logger.write(MODULE_NAME, "[ERROR] initialize -> err = "+ err.stack);