git ssb

30+

cel / git-ssb-web



Commit 15656259603f9d8fe62306636d08661073609fd1

Fix error handling

Charles Lehner committed on 10/9/2016, 9:08:04 PM
Parent: 17902b87345bd7f2aea48ec1a1863920ff23829a

Files changed

lib/repos/pulls.jschanged
lib/repos/pulls.jsView
@@ -89,12 +89,12 @@
8989
9090 P.renderPullReqCommits = function (req, pr, baseRepo, headRepo, cb) {
9191 var self = this
9292 self.web.pullReqs.getRevs(pr.id, function (err, revs) {
93- if (err) return cb(null, self.web.renderError(err))
93 + if (err) return cb(err)
9494 GitRepo.getMergeBase(baseRepo, revs.base, headRepo, revs.head,
9595 function (err, mergeBase) {
96- if (err) return cb(null, self.web.renderError(err))
96 + if (err) return cb(err)
9797 cb(null, cat([
9898 pull.once('<section>'),
9999 self.renderCommitLog(req, baseRepo, mergeBase, headRepo, revs.head),
100100 pull.once('</section>')
@@ -106,12 +106,12 @@
106106
107107 P.renderPullReqFiles = function (req, pr, baseRepo, headRepo, cb) {
108108 var self = this
109109 self.web.pullReqs.getRevs(pr.id, function (err, revs) {
110- if (err) return cb(null, self.web.renderError(err))
110 + if (err) return cb(err)
111111 GitRepo.getMergeBase(baseRepo, revs.base, headRepo, revs.head,
112112 function (err, mergeBase) {
113- if (err) return cb(null, self.web.renderError(err))
113 + if (err) return cb(err)
114114 cb(null, cat([
115115 pull.once('<section>'),
116116 self.repo.renderDiffStat(req,
117117 [baseRepo, headRepo], [mergeBase, revs.head]),

Built with git-ssb-web