mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-05-04 04:57:48 +08:00
feat:增加启动异常处理
This commit is contained in:
parent
61fdf0d15e
commit
f1b6594c50
5
main.go
5
main.go
@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
_ "github.com/astaxie/beego/session/memcache"
|
_ "github.com/astaxie/beego/session/memcache"
|
||||||
@ -36,5 +37,7 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
s.Run()
|
if err := s.Run(); err != nil {
|
||||||
|
log.Fatal("启动程序失败 ->", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user