0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-26 16:02:54 +01:00

print err

This commit is contained in:
slene 2014-03-28 00:13:05 +08:00
parent 677643b812
commit 16cb1e974c
2 changed files with 1 additions and 2 deletions

View 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

View 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
}