Skip to content

Commit db4f483

Browse files
committed
Merge pull request #5 from martinheidegger/patch-3
Fixed timeout that happened if an error occurs
2 parents 971662b + ef2d29b commit db4f483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webapp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727

2828
listRepos: function(config, done){
2929
api.get(config, "projects", function(err, repos){
30-
if (err) return console.log(err);
30+
if (err) return done(err);
3131

3232
// Parse and filter only git repos
3333
done(null, repos.map(api.parseRepo).filter(function(repo){

0 commit comments

Comments
 (0)