Skip to content

Commit ef2d29b

Browse files
Fixed timeout that happened if an error occurs
When an error occurred it will just log the error but not return anything. FIxed that by just returning the error.
1 parent 971662b commit ef2d29b

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)