fix: container cli error handling

This commit is contained in:
Lin, Hung-Shin committed 2023-11-22 10:39:57 +08:00
1 parent ba641ca222
commit 06c36565d0
1 file changed
+9 -1
+9 -1
View File
@@ -85,4 +85,12 @@ async function main() {
}
}
main().then(exit)
main()
.then(exit)
.catch((err) => {
console.log(
'發生預期外的錯誤,請嘗試重新啟動 Quest,如果問題持續發生,請幫我們填寫右上角的錯誤回報表單。'
)
console.error(err)
exit(1)
})