]> source.dussan.org Git - gitea.git/commitdiff
print err
authorslene <vslene@gmail.com>
Thu, 27 Mar 2014 16:13:05 +0000 (00:13 +0800)
committerslene <vslene@gmail.com>
Thu, 27 Mar 2014 16:14:09 +0000 (00:14 +0800)
models/git.go
routers/repo/commit.go

index 6bae7248770a8e6d0bcb3c0fae6037c215374265..e2ee52083d7527c305be383edef59783a1ccb072 100644 (file)
@@ -244,7 +244,6 @@ func GetCommitsByCommitId(userName, repoName, commitId string) (*list.List, erro
        if err != nil {
                return nil, err
        }
-       fmt.Println(userName, repoName, commitId)
        r, err := repo.LookupReference(commitId)
        if err != nil {
                return nil, err
index 11aab67caa3ce4a8c5b93f0e7d647cca3c212f4b..4a126d236b0ed39313c6f2b2b1f6c55579672b6e 100644 (file)
@@ -37,7 +37,7 @@ func Commits(ctx *middleware.Context, params martini.Params) {
        }
 
        if err != nil {
-               ctx.Handle(404, "repo.Commits", nil)
+               ctx.Handle(404, "repo.Commits", err)
                return
        }