diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs index adcdb9fc..cfb01f15 100755 --- a/quartz/bootstrap-cli.mjs +++ b/quartz/bootstrap-cli.mjs @@ -86,8 +86,8 @@ const BuildArgv = { }, concurrency: { number: true, - describe: "how many threads to use to parse notes" - } + describe: "how many threads to use to parse notes", + }, } function escapePath(fp) { diff --git a/quartz/processors/parse.ts b/quartz/processors/parse.ts index 13400204..69df69b3 100644 --- a/quartz/processors/parse.ts +++ b/quartz/processors/parse.ts @@ -118,7 +118,8 @@ export async function parseMarkdown(ctx: BuildCtx, fps: FilePath[]): Promise 0 ? `: ${err.message}` : ""), + chalk.bgRed.black.bold(" ERROR ") + + "\n" + + chalk.red(` ${msg}`) + + (err.message.length > 0 ? `: ${err.message}` : ""), ) if (!stack) {