feat:增加启动异常处理

pull/536/head
lifei6671 2019-05-22 15:11:41 +08:00
parent 61fdf0d15e
commit f1b6594c50
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package main
import (
"fmt"
"log"
"os"
_ "github.com/astaxie/beego/session/memcache"
@ -36,5 +37,7 @@ func main() {
os.Exit(1)
}
s.Run()
if err := s.Run(); err != nil {
log.Fatal("启动程序失败 ->", err)
}
}