From b51fa61c4a3a3527d3c564fc58844ef57ee09eef Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 18 Jan 2021 18:27:23 +0100 Subject: [PATCH] Bug Fixed. Error displaying at when Tasks are shut down --- .../TS/Function-Libraries/NodeJSFunctions.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Projects/Superalgos/TS/Function-Libraries/NodeJSFunctions.js b/Projects/Superalgos/TS/Function-Libraries/NodeJSFunctions.js index 14530bac6..b74a15a4d 100644 --- a/Projects/Superalgos/TS/Function-Libraries/NodeJSFunctions.js +++ b/Projects/Superalgos/TS/Function-Libraries/NodeJSFunctions.js @@ -45,11 +45,13 @@ exports.newSuperalgosFunctionLibrariesNodeJSFunctions = function () { } } - TS.projects.superalgos.functionLibraries.taskFunctions.taskError( - undefined, - uiError, - docs - ) + if (TS.projects.superalgos.globals.taskVariables.FATAL_ERROR_MESSAGE || TS.projects.superalgos.globals.taskVariables.UNEXPECTED_ERROR) { + TS.projects.superalgos.functionLibraries.taskFunctions.taskError( + undefined, + uiError, + docs + ) + } if (isNodeJsProcessShuttingDown === true) { return } isNodeJsProcessShuttingDown = true