better error message
parent
e7f01fa498
commit
1f6a9afae4
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue