feat:优化错误传递方式

This commit is contained in:
Mmx
2021-07-11 12:59:00 +08:00
parent 257a9b7034
commit f3f122a1c5
3 changed files with 20 additions and 17 deletions

View File

@@ -25,7 +25,10 @@ func main() {
os.Exit(1)
}
}()
controllers.Login(true)
if err := controllers.Login(true); err != nil {
util.ErrHandler(err)
return
}
if global.Config.Settings.Guardian != 0 {
global.Status.Daemon = true