more robust error handling, config hotreload

This commit is contained in:
Jacky Zhao
2023-08-05 11:28:09 -07:00
parent 9e76b257d4
commit c402f0c385
10 changed files with 151 additions and 145 deletions

View File

@ -1,4 +1,5 @@
import chalk from "chalk"
import process from "process"
const rootFile = /.*at file:/
export function trace(msg: string, err: Error) {
@ -28,4 +29,5 @@ export function trace(msg: string, err: Error) {
}
}
}
process.exit(1)
}