From c459df2f5da2a19fcdf66c129ea1adb7646cd3d7 Mon Sep 17 00:00:00 2001 From: Ilya Radchenko Date: Tue, 26 Sep 2017 13:05:31 -0400 Subject: [PATCH] fix: debug keeper error --- lib/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 0f58b5e..fba4bde 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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); });