mirror of
https://github.com/HolographicHat/Yae.git
synced 2026-05-09 14:54:02 +08:00
fix appcenter log upload error
This commit is contained in:
8
app.js
8
app.js
@@ -17,18 +17,18 @@ const onExit = () => {
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
process.once("SIGHUP", () => setupHost(true))
|
||||
process.on("SIGHUP", () => setupHost(true))
|
||||
process.on("unhandledRejection", (reason, promise) => {
|
||||
console.log("Unhandled Rejection at: ", promise, "\n0Reason:", reason)
|
||||
})
|
||||
process.once("uncaughtException", (err, origin) => {
|
||||
process.on("uncaughtException", (err, origin) => {
|
||||
appcenter.uploadError(err, true)
|
||||
console.log(err)
|
||||
console.log(`Origin: ${origin}`)
|
||||
process.exit(1)
|
||||
})
|
||||
process.once("exit", onExit)
|
||||
process.once("SIGINT", onExit)
|
||||
process.on("exit", onExit)
|
||||
process.on("SIGINT", onExit)
|
||||
try {
|
||||
enablePrivilege()
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user