From 5fcba1bfaf8821fbb01cc7e67e01c553ffebfa39 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 19 Jul 2024 17:02:03 +0000
Subject: [PATCH] chore(deps): bump mdast-util-to-hast from 13.1.0 to 13.2.0 (#1279)

---
 quartz/cli/helpers.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/quartz/cli/helpers.js b/quartz/cli/helpers.js
index b07d19e..702a1b7 100644
--- a/quartz/cli/helpers.js
+++ b/quartz/cli/helpers.js
@@ -36,7 +36,9 @@
   const flags = ["--no-rebase", "--autostash", "-s", "recursive", "-X", "ours", "--no-edit"]
   const out = spawnSync("git", ["pull", ...flags, origin, branch], { stdio: "inherit" })
   if (out.stderr) {
-    throw new Error(`Error while pulling updates: ${out.stderr}`)
+    throw new Error(chalk.red(`Error while pulling updates: ${out.stderr}`))
+  } else if (out.status !== 0) {
+    throw new Error(chalk.red("Error while pulling updates"))
   }
 }
 

--
Gitblit v1.10.0