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
 	}