This commit is contained in:
ozakione 2024-04-01 15:46:51 +02:00
parent 6b83e2d153
commit c3f32ab781
3 changed files with 5 additions and 5 deletions

View file

@ -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,
});
}
}

View file

@ -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},
);
}
}

View file

@ -239,7 +239,7 @@ export default async function createConfigAsync() {
],
themes: ['live-codeblock', ...dogfoodingThemeInstances],
plugins: [
'content-showcase',
['content-showcase', {}],
[
'./src/plugins/changelog/index.js',
{