File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function createCompilerError<T extends number>(
30
30
const msg =
31
31
__DEV__ || ! __BROWSER__
32
32
? ( messages || errorMessages ) [ code ] + ( additionalMessage || `` )
33
- : code
33
+ : `https://vuejs.org/errors/#compiler- ${ code } `
34
34
const error = new SyntaxError ( String ( msg ) ) as InferCompilerError < T >
35
35
error . code = code
36
36
error . loc = loc
Original file line number Diff line number Diff line change @@ -110,7 +110,9 @@ export function handleError(
110
110
// the exposed instance is the render proxy to keep it consistent with 2.x
111
111
const exposedInstance = instance . proxy
112
112
// in production the hook receives only the error code
113
- const errorInfo = __DEV__ ? ErrorTypeStrings [ type ] : type
113
+ const errorInfo = __DEV__
114
+ ? ErrorTypeStrings [ type ]
115
+ : `https://vuejs.org/errors/#runtime-${ type } `
114
116
while ( cur ) {
115
117
const errorCapturedHooks = cur . ec
116
118
if ( errorCapturedHooks ) {
You can’t perform that action at this time.
0 commit comments