From 57072bf268ad4872f30746853961ab1db4872ef9 Mon Sep 17 00:00:00 2001 From: Jairo Panduro Date: Wed, 2 Mar 2022 15:22:55 +0000 Subject: [PATCH] STRF-9658 logger accepts strings instead of objects --- lib/translator/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/translator/index.js b/lib/translator/index.js index 823b0aa..8d6c8d2 100644 --- a/lib/translator/index.js +++ b/lib/translator/index.js @@ -105,7 +105,7 @@ Translator.prototype.translate = function (key, parameters) { try { return this._formatFunctions[key](parameters); } catch (err) { - this._logger.error(err); + this._logger.error(err.message); return ''; } };