better error message

This commit is contained in:
webzwo0i 2015-02-15 15:23:43 +01:00
parent e7f01fa498
commit 1f6a9afae4

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],