Merge pull request #1306 from pygy/next-single-error-message

[next] Use identical error messages, improve gzipped size
This commit is contained in:
Leo Horie 2016-09-09 13:07:22 -04:00 committed by GitHub
commit 6ab9570474

View file

@ -1474,8 +1474,8 @@
m.mount = m.module = function (root, component) {
if (!root) {
throw new Error("Please ensure the DOM element exists before " +
"rendering a template into it.")
throw new Error("Ensure the DOM element being passed to " +
"m.route/m.mount/m.render is not undefined.")
}
var index = roots.indexOf(root)