Skip to content

Commit

Permalink
fix: debug keeper error
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya authored Sep 26, 2017
1 parent bc507cd commit c459df2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ Runner.prototype = {
// The default is 0, ie wipe at start of each run.
// Later, this can be configurable in the UI.
keeper({baseDir: branchBase, count: recentBuilds - 1}, function (err) {
if (err) return next(err);
if (err) {
debug('Error encountered clearing data directory', err.message);
return next(err);
}

initJobDirs(branchBase, job, cache.base, jobDirsReady);
});
Expand Down

0 comments on commit c459df2

Please sign in to comment.