better error message

pull/2518/head
webzwo0i 2015-02-15 15:23:43 +01:00
parent e7f01fa498
commit 1f6a9afae4
1 changed files with 1 additions and 1 deletions

View File

@ -1620,7 +1620,7 @@ exports.makeAText = function (text, attribs) {
exports.applyToAText = function (cs, atext, pool) {
var text = exports.applyToText(cs, atext.text)
if(text[1]){
throw new Error()
throw new Error("newline count is wrong, cs:",cs," and text:",atext)
}
return {
text: text[0],