mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-25 04:28:07 +02:00
wip
This commit is contained in:
parent
6b83e2d153
commit
c3f32ab781
3 changed files with 5 additions and 5 deletions
|
@ -29,8 +29,8 @@ export function validateFrontMatterTags(
|
|||
): void {
|
||||
const result = tagListSchema.validate(frontMatterTags);
|
||||
if (result.error) {
|
||||
throw new Error(
|
||||
`Front matter contains invalid tags: ${result.error.message}`,
|
||||
);
|
||||
throw new Error(`Front matter contains invalid tags`, {
|
||||
cause: result.error,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ export default function pluginContentShowcase(
|
|||
} catch (err) {
|
||||
throw new Error(
|
||||
`Processing of page source file path=${relativeSource} failed.`,
|
||||
{cause: err as Error},
|
||||
{cause: err},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue