From 9d983f27d69b72f42eeb833cb0f38e78e3819839 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 13 Apr 2014 03:14:43 -0400 Subject: go vet --- models/models_sqlite.go | 4 ++-- models/update.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'models') 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 } } -- cgit v1.2.3