diff options
author | slene <vslene@gmail.com> | 2014-03-28 00:13:05 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-28 00:14:09 +0800 |
commit | 16cb1e974ca2e34384cd7882886f46f860ea5640 (patch) | |
tree | 2ab1948d58d5a8bf7f26d240f6ae1e76b0d0d746 | |
parent | 677643b812cdc3bce3b7ef7839239b3059376684 (diff) | |
download | gitea-16cb1e974ca2e34384cd7882886f46f860ea5640.tar.gz gitea-16cb1e974ca2e34384cd7882886f46f860ea5640.zip |
print err
-rw-r--r-- | models/git.go | 1 | ||||
-rw-r--r-- | routers/repo/commit.go | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/models/git.go b/models/git.go index 6bae724877..e2ee52083d 100644 --- a/models/git.go +++ b/models/git.go @@ -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 diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 11aab67caa..4a126d236b 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -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 } |