aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js1
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
}