mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
fix: container cli error handling
This commit is contained in:
1 parent
ba641ca222
commit
06c36565d0
1 file changed
+9
-1
@@ -85,4 +85,12 @@ async function main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main().then(exit)
|
main()
|
||||||
|
.then(exit)
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(
|
||||||
|
'發生預期外的錯誤,請嘗試重新啟動 Quest,如果問題持續發生,請幫我們填寫右上角的錯誤回報表單。'
|
||||||
|
)
|
||||||
|
console.error(err)
|
||||||
|
exit(1)
|
||||||
|
})
|
||||||
Reference in new issue
Block a user