From 68ccd1d79de7cef275605e238238c1a80bbb074f Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Tue, 8 Aug 2023 22:53:01 -0700 Subject: [PATCH] format --- quartz/bootstrap-cli.mjs | 4 ++-- quartz/processors/parse.ts | 3 ++- quartz/sourcemap.ts | 1 - quartz/trace.ts | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs index adcdb9fc1..cfb01f15d 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 13400204e..69df69b3d 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) {