mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Better error message for broken JSON
This commit is contained in:
parent
50474dff1f
commit
d21cc1912c
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ if (!JSON)
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the text is not JSON parseable, then a SyntaxError is thrown.
|
// If the text is not JSON parseable, then a SyntaxError is thrown.
|
||||||
throw new SyntaxError('JSON.parse');
|
throw new SyntaxError('JSON.parse: ' + text);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue