Skip to content

Commit

Permalink
refactor(compiler-core): link errors to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 25, 2023
1 parent b8fc18c commit a283667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function createCompilerError<T extends number>(
const msg =
__DEV__ || !__BROWSER__
? (messages || errorMessages)[code] + (additionalMessage || ``)
: code
: `https://vuejs.org/errors/#${code}`
const error = new SyntaxError(String(msg)) as InferCompilerError<T>
error.code = code
error.loc = loc
Expand Down

0 comments on commit a283667

Please sign in to comment.