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 ''; } };