mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
better error message
This commit is contained in:
parent
e7f01fa498
commit
1f6a9afae4
1 changed files with 1 additions and 1 deletions
|
@ -1620,7 +1620,7 @@ exports.makeAText = function (text, attribs) {
|
||||||
exports.applyToAText = function (cs, atext, pool) {
|
exports.applyToAText = function (cs, atext, pool) {
|
||||||
var text = exports.applyToText(cs, atext.text)
|
var text = exports.applyToText(cs, atext.text)
|
||||||
if(text[1]){
|
if(text[1]){
|
||||||
throw new Error()
|
throw new Error("newline count is wrong, cs:",cs," and text:",atext)
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
text: text[0],
|
text: text[0],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue