UNPKG

astro-d2

Version:

Astro integration and remark plugin to transform D2 Markdown code blocks into diagrams.

9 lines (7 loc) 369 B
import { AstroError } from 'astro/errors' export function throwErrorWithHint(message: string, cause?: Error): never { throw new AstroError( message + (cause ? `\n\n${cause.message}` : ''), `See the error report above for more informations.\n\nIf you believe this is a bug, please file an issue at https://github.com/HiDeoo/astro-d2/issues/new/choose`, ) }