summaryrefslogtreecommitdiffstats
path: root/cmd/update.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-23 16:22:34 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-23 16:22:34 -0400
commit47d29a1ee027734dcbbd1a6ed4d8ff3dde1a789b (patch)
treea1b8b4902b9c9c9c0dda2bfe28eb51f7ed6aa50a /cmd/update.go
parentfb53cc4fa82bbbbba4b8b0281d5f5657b1a6fafc (diff)
downloadgitea-47d29a1ee027734dcbbd1a6ed4d8ff3dde1a789b.tar.gz
gitea-47d29a1ee027734dcbbd1a6ed4d8ff3dde1a789b.zip
Mirror fix on #248
Diffstat (limited to 'cmd/update.go')
-rw-r--r--cmd/update.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/update.go b/cmd/update.go
index d0e0acded9..c030b6cfb2 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -42,5 +42,7 @@ func runUpdate(c *cli.Context) {
repoUserName := os.Getenv("repoUserName")
repoName := os.Getenv("repoName")
- models.Update(args[0], args[1], args[2], userName, repoUserName, repoName, userId)
+ if err := models.Update(args[0], args[1], args[2], userName, repoUserName, repoName, userId); err != nil {
+ log.GitLogger.Fatal(err.Error())
+ }
}