Merge pull request #1306 from pygy/next-single-error-message
[next] Use identical error messages, improve gzipped size
This commit is contained in:
commit
6ab9570474
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue