feat:增加启动异常处理

This commit is contained in:
lifei6671 2019-05-22 15:11:41 +08:00
parent 61fdf0d15e
commit f1b6594c50

View File

@ -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)
}
} }