summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-13 03:14:43 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-13 03:14:43 -0400
commit9d983f27d69b72f42eeb833cb0f38e78e3819839 (patch)
tree41fe885c7ee0a2ddfca1e3f2c8597b692167ead7 /models
parent5c2da610a2cfd3fa9666d20739e054c3588b4d05 (diff)
downloadgitea-9d983f27d69b72f42eeb833cb0f38e78e3819839.tar.gz
gitea-9d983f27d69b72f42eeb833cb0f38e78e3819839.zip
go vet
Diffstat (limited to 'models')
-rw-r--r--models/models_sqlite.go4
-rw-r--r--models/update.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/models/models_sqlite.go b/models/models_sqlite.go
index 1d80823fe5..c77e5ae5a6 100644
--- a/models/models_sqlite.go
+++ b/models/models_sqlite.go
@@ -1,9 +1,9 @@
+// +build sqlite
+
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
-// +build sqlite
-
package models
import (
diff --git a/models/update.go b/models/update.go
index 53591fa42e..ba0e979348 100644
--- a/models/update.go
+++ b/models/update.go
@@ -39,12 +39,12 @@ func Update(refName, oldCommitId, newCommitId, userName, repoName string, userId
if isNew {
l, err = newCommit.CommitsBefore()
if err != nil {
- qlog.Fatalf("Find CommitsBefore erro:", err)
+ qlog.Fatalf("Find CommitsBefore erro: %v", err)
}
} else {
l, err = newCommit.CommitsBeforeUntil(oldCommitId)
if err != nil {
- qlog.Fatalf("Find CommitsBeforeUntil erro:", err)
+ qlog.Fatalf("Find CommitsBeforeUntil erro: %v", err)
return
}
}