Skip to content

Commit

Permalink
STRF-9658 logger accepts strings instead of objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc committed Mar 2, 2022
1 parent 48ff533 commit 57072bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/translator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
}
};
Expand Down

0 comments on commit 57072bf

Please sign in to comment.