#3045 fix DEPRECATED Action signature erorr

This commit is contained in:
Unknwon 2016-05-12 14:32:28 -04:00
parent 8a2347592d
commit 7826eae452
10 changed files with 30 additions and 18 deletions

View file

@ -175,7 +175,7 @@ func newMacaron() *macaron.Macaron {
return m
}
func runWeb(ctx *cli.Context) {
func runWeb(ctx *cli.Context) error {
if ctx.IsSet("config") {
setting.CustomConf = ctx.String("config")
}
@ -585,4 +585,6 @@ func runWeb(ctx *cli.Context) {
if err != nil {
log.Fatal(4, "Fail to start server: %v", err)
}
return nil
}