Skip to content

Commit

Permalink
Errors should now report which branch is causing the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Oct 13, 2010
1 parent 4a52329 commit 9613ded
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/gitwatch.js
Expand Up @@ -67,7 +67,11 @@ function Branches () {

this.getUpdated = function (cb) {
this.getCommits(function (err, branch, meta, commits) {
if (err) { cb(err, branch); return }
if (err) {
//So we know which branch is causing the error
err.branch = branch;
cb(err, branch);
return }

if (meta.lastCommit != commits[0].id) {
db.set(branch, Hash.merge(meta, {
Expand Down

0 comments on commit 9613ded

Please sign in to comment.