chore(server renderer): readable warn message (#2890)
This commit is contained in:
parent
0abcb2b80d
commit
7540a3ff1d
@ -188,11 +188,8 @@ function renderComponentSubTree(
|
||||
slotScopeId
|
||||
)
|
||||
} else {
|
||||
warn(
|
||||
`Component ${
|
||||
comp.name ? `${comp.name} ` : ``
|
||||
} is missing template or render function.`
|
||||
)
|
||||
const componentName = comp.name || comp.__file || `<Anonymous>`
|
||||
warn(`Component ${componentName} is missing template or render function.`)
|
||||
push(`<!---->`)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user