Bug Fixes

This commit is contained in:
Luis Fernando Molina committed 2020-08-06 11:45:01 +02:00
1 parent f5a1d6339b
commit 11aa3d6bf7
2 files changed
+9 -2

No files matched your search

+6
View File
@@ -136,6 +136,12 @@ exports.newTradingSystem = function newTradingSystem(bot, logger, tradingEngineM
included at the errors array. That means we need to do nothing here,
just prevent the execution to be halted for not handling exceptions.
*/
if (typeof err === 'string' || err instanceof String) {
logger.write(MODULE_NAME, '[ERROR] runExecution -> err = ' + err)
}
if (err.stack !== undefined) {
logger.write(MODULE_NAME, '[ERROR] runExecution -> err = ' + err.stack)
}
}
}