diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-07-26 00:24:27 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-07-26 00:24:27 -0400 |
commit | 8dd07c0ddd99ae626a1ec8c06f75f27fed51269f (patch) | |
tree | 261d3c9911dabc58c1ac54e4e36b3dee24d2032b /cmd/update.go | |
parent | 0a739cf9ac901f54484c34bba8322418dedb09b0 (diff) | |
download | gitea-8dd07c0ddd99ae626a1ec8c06f75f27fed51269f.tar.gz gitea-8dd07c0ddd99ae626a1ec8c06f75f27fed51269f.zip |
New UI merge in progress
Diffstat (limited to 'cmd/update.go')
-rw-r--r-- | cmd/update.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/update.go b/cmd/update.go index bee30b89c9..cc55693e2b 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -8,6 +8,7 @@ import ( "os" "github.com/codegangsta/cli" + "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/log" ) @@ -30,9 +31,9 @@ func runUpdate(c *cli.Context) { args := c.Args() if len(args) != 3 { - log.GitLogger.Fatal("received less 3 parameters") + log.GitLogger.Fatal(2, "received less 3 parameters") } else if args[0] == "" { - log.GitLogger.Fatal("refName is empty, shouldn't use") + log.GitLogger.Fatal(2, "refName is empty, shouldn't use") } uuid := os.Getenv("uuid") @@ -45,6 +46,6 @@ func runUpdate(c *cli.Context) { } if err := models.AddUpdateTask(&task); err != nil { - log.GitLogger.Fatal(err.Error()) + log.GitLogger.Fatal(2, err.Error()) } } |