Bladeren bron

content-dir-schemas exit process on error

Mokhtar Naamani 4 jaren geleden
bovenliggende
commit
171d9931ae

+ 4 - 1
content-directory-schemas/scripts/devInitAliceLead.ts

@@ -85,4 +85,7 @@ async function main() {
 
 main()
   .then(() => process.exit())
-  .catch((e) => console.error(e))
+  .catch((e) => {
+    console.error(e)
+    process.exit(-1)
+  })

+ 4 - 1
content-directory-schemas/scripts/initializeContentDir.ts

@@ -59,4 +59,7 @@ async function main() {
 
 main()
   .then(() => process.exit())
-  .catch((e) => console.error(e))
+  .catch((e) => {
+    console.error(e)
+    process.exit(-1)
+  })