@astrojs/starlight
Version:
Build beautiful, high-performance documentation websites with Astro
10 lines (8 loc) • 374 B
text/typescript
import { AstroError } from 'astro/errors';
export function throwInvalidAsideIconError(icon: string) {
throw new AstroError(
'Invalid aside icon',
`An aside custom icon must be set to the name of one of Starlight’s built-in icons, but received \`${icon}\`.\n\n` +
'See https://starlight.astro.build/reference/icons/#all-icons for a list of available icons.'
);
}