diff --git a/src/errors.js b/src/errors.js index 83e5e299..a48a5ab7 100644 --- a/src/errors.js +++ b/src/errors.js @@ -12,6 +12,9 @@ var MyError = Backbone.Model.extend({ }, toResult: function() { + if (!this.get('msg').length) { + return ''; + } return '

' + this.get('msg').replace(/\n/g, '

') + '

'; } });