diff options
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 88e6d97..666e5ff 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -242,6 +242,7 @@ RenderMsg.prototype.getMsgName = function (id, cb) { } function truncate(str, len) { + str = String(str) return str.length > len ? str.substr(0, len) + '...' : str } |