From d8d9dd22c9e81f344f3ab56f7262d804c2720fcd Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 07 Aug 2023 03:52:17 +0000
Subject: [PATCH] fix shortest path for non-md files, mobile fix
---
quartz/trace.ts | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/quartz/trace.ts b/quartz/trace.ts
index d9d45d2..337ffe0 100644
--- a/quartz/trace.ts
+++ b/quartz/trace.ts
@@ -1,11 +1,14 @@
import chalk from "chalk"
+import process from "process"
const rootFile = /.*at file:/
export function trace(msg: string, err: Error) {
const stack = err.stack
console.log()
console.log(
- chalk.bgRed.white.bold(" ERROR ") +
+ "\n" +
+ chalk.bgRed.black.bold(" ERROR ") +
+ "\n" +
chalk.red(` ${msg}`) +
(err.message.length > 0 ? `: ${err.message}` : ""),
)
@@ -26,4 +29,5 @@
}
}
}
+ process.exit(1)
}
--
Gitblit v1.10.0