mirror of
https://github.com/coder/code-server.git
synced 2025-07-30 05:22:04 +08:00
Move uncaught exception handler to wrapper
Feels more appropriate there to me.
This commit is contained in:
@ -18,13 +18,6 @@ import { loadPlugins } from "./plugin"
|
||||
import { generateCertificate, hash, humanPath, open } from "./util"
|
||||
import { ipcMain, wrap } from "./wrapper"
|
||||
|
||||
process.on("uncaughtException", (error) => {
|
||||
logger.error(`Uncaught exception: ${error.message}`)
|
||||
if (typeof error.stack !== "undefined") {
|
||||
logger.error(error.stack)
|
||||
}
|
||||
})
|
||||
|
||||
let pkg: { version?: string; commit?: string } = {}
|
||||
try {
|
||||
pkg = require("../../package.json")
|
||||
|
Reference in New Issue
Block a user