From 18cc3e0d4fc733cdee59b567ac62509b55acd2b4 Mon Sep 17 00:00:00 2001 From: noeFly Date: Sun, 19 Jan 2025 15:59:37 +0800 Subject: [PATCH] fix: output incorrect symbol in console (#290) --- scripts/new-post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/new-post.js b/scripts/new-post.js index f66a188c..41a0569c 100644 --- a/scripts/new-post.js +++ b/scripts/new-post.js @@ -32,7 +32,7 @@ const targetDir = "./src/content/posts/" const fullPath = path.join(targetDir, fileName) if (fs.existsSync(fullPath)) { - console.error(`Error:File ${fullPath} already exists `) + console.error(`Error: File ${fullPath} already exists `) process.exit(1) }