mirror of https://github.com/vuejs/core.git
fix: correct url for production error reference links
This commit is contained in:
parent
2ffb956efe
commit
c3087ff2cc
|
@ -30,7 +30,7 @@ export function createCompilerError<T extends number>(
|
|||
const msg =
|
||||
__DEV__ || !__BROWSER__
|
||||
? (messages || errorMessages)[code] + (additionalMessage || ``)
|
||||
: `https://vuejs.org/errors/#compiler-${code}`
|
||||
: `https://vuejs.org/error-reference/#compiler-${code}`
|
||||
const error = new SyntaxError(String(msg)) as InferCompilerError<T>
|
||||
error.code = code
|
||||
error.loc = loc
|
||||
|
|
|
@ -112,7 +112,7 @@ export function handleError(
|
|||
// in production the hook receives only the error code
|
||||
const errorInfo = __DEV__
|
||||
? ErrorTypeStrings[type]
|
||||
: `https://vuejs.org/errors/#runtime-${type}`
|
||||
: `https://vuejs.org/error-reference/#runtime-${type}`
|
||||
while (cur) {
|
||||
const errorCapturedHooks = cur.ec
|
||||
if (errorCapturedHooks) {
|
||||
|
|
Loading…
Reference in New Issue