From 486bd9358c6921a1d9ccb9597a4b9d7acaf58731 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 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) {