Browse Source

print err

pull/71/head
slene 11 years ago
parent
commit
16cb1e974c
  1. 1
      models/git.go
  2. 2
      routers/repo/commit.go

1
models/git.go

@ -244,7 +244,6 @@ func GetCommitsByCommitId(userName, repoName, commitId string) (*list.List, erro
if err != nil { if err != nil {
return nil, err return nil, err
} }
fmt.Println(userName, repoName, commitId)
r, err := repo.LookupReference(commitId) r, err := repo.LookupReference(commitId)
if err != nil { if err != nil {
return nil, err return nil, err

2
routers/repo/commit.go

@ -37,7 +37,7 @@ func Commits(ctx *middleware.Context, params martini.Params) {
} }
if err != nil { if err != nil {
ctx.Handle(404, "repo.Commits", nil) ctx.Handle(404, "repo.Commits", err)
return return
} }

Loading…
Cancel
Save