You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/07/14 03:46:59 UTC

[iotdb-docs] 18/33: exit process when error

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git

commit f6133ed129d302b23135e2fe502b9e74ece3f833
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Jul 11 19:46:38 2023 +0800

    exit process when error
---
 deploy.cjs         | 2 +-
 deploy_staging.cjs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deploy.cjs b/deploy.cjs
index a89f5a5..bc8838c 100644
--- a/deploy.cjs
+++ b/deploy.cjs
@@ -26,6 +26,6 @@ ghpages.publish('src/.vuepress/dist', {
 }, (err) => {
   if (err instanceof Error) {
     console.error(err);
-    throw err;
+    process.exit(1)
   }
 });
diff --git a/deploy_staging.cjs b/deploy_staging.cjs
index 96afffd..c550800 100644
--- a/deploy_staging.cjs
+++ b/deploy_staging.cjs
@@ -26,6 +26,6 @@ ghpages.publish('src/.vuepress/dist', {
 }, (err) => {
   if (err instanceof Error) {
     console.error(err);
-    throw err;
+    process.exit(1)
   }
 });