From ae2e3b463a91d94caa8bdf62e5c3a3d726b8b4e4 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 23 Jul 2023 18:49:26 +0000
Subject: [PATCH] improve error handling while serving

---
 quartz/log.ts |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/quartz/log.ts b/quartz/log.ts
index 73e5d7e..773945c 100644
--- a/quartz/log.ts
+++ b/quartz/log.ts
@@ -17,10 +17,12 @@
     }
   }
 
-  success(text: string) {
+  end(text?: string) {
     if (!this.verbose) {
       this.spinner!.stop(true)
     }
-    console.log(text)
+    if (text) {
+      console.log(text)
+    }
   }
 }

--
Gitblit v1.10.0