diff options
author | 2021-06-02 13:50:16 -0400 | |
---|---|---|
committer | 2021-06-02 13:50:16 -0400 | |
commit | 6de740d62f422e3052b8aec0e541ae1b0b24cd6a (patch) | |
tree | a8f4a7eb4b623c5afea14c45fddd78efcb6d38cf /packages/astro-parser/src/utils/error.ts | |
parent | 436a016408409cae53767ffc071cbf841e2c59a9 (diff) | |
download | astro-6de740d62f422e3052b8aec0e541ae1b0b24cd6a.tar.gz astro-6de740d62f422e3052b8aec0e541ae1b0b24cd6a.tar.zst astro-6de740d62f422e3052b8aec0e541ae1b0b24cd6a.zip |
Fix starter template's Tour component (#290)
* Fix starter template's Tour component
This component had an extra backtick and also didn't import the Markdown component.
* Add a changeset
Diffstat (limited to 'packages/astro-parser/src/utils/error.ts')
-rw-r--r-- | packages/astro-parser/src/utils/error.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/astro-parser/src/utils/error.ts b/packages/astro-parser/src/utils/error.ts index 00eed866f..a532f07dd 100644 --- a/packages/astro-parser/src/utils/error.ts +++ b/packages/astro-parser/src/utils/error.ts @@ -27,6 +27,7 @@ export class CompileError extends Error { /** Throw CompileError */ export default function error( + code: string, message: string, props: { name: string; @@ -36,7 +37,7 @@ export default function error( end?: number; } ): never { - const err = new CompileError({ message, start: props.start, end: props.end, filename: props.filename }); + const err = new CompileError({ code, message, start: props.start, end: props.end, filename: props.filename }); err.name = props.name; throw err; |