log out errors more clearly

This commit is contained in:
Henry Oswald
2016-05-27 14:45:39 +01:00
parent da324a8dd0
commit cda1e301f6
2 changed files with 6 additions and 2 deletions

View File

@@ -13,7 +13,9 @@ module.exports = OutputFileFinder =
logger.log directory: directory, "getting output files"
OutputFileFinder._getAllFiles directory, (error, allFiles = []) ->
return callback(error) if error?
if error?
logger.err err:error, "error finding all output files"
return callback(error)
jobs = []
outputFiles = []
for file in allFiles