log render error instead of throwing

This commit is contained in:
Evan You 2016-11-04 22:19:45 -04:00
parent ef0d788fc1
commit 6e3e989a90

View File

@ -65,7 +65,7 @@ export function renderMixin (Vue: Class<Component>) {
if (config._isServer) {
throw e
} else {
setTimeout(() => { throw e }, 0)
console.error(e)
}
}
// return previous vnode to prevent render error causing blank component