From d0c153590f5c7607aea6e6dc4f9ccff3d93bb7ef Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 4 Nov 2015 16:07:15 -0800 Subject: [PATCH] fix(ship-logs): Do not propogate fs errors (Sentry 6144) --- src/tasks/ship-logs-task.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tasks/ship-logs-task.coffee b/src/tasks/ship-logs-task.coffee index 91944337c..b2ba26460 100644 --- a/src/tasks/ship-logs-task.coffee +++ b/src/tasks/ship-logs-task.coffee @@ -49,6 +49,8 @@ module.exports = (dir, regexPattern) -> detailedLog("Error uploading #{log}: status code #{response.statusCode}") else detailedLog("Successfully uploaded #{log}") - fs.truncate log, => - fs.unlink(log) + fs.truncate log, (err) => + console.log(err) if err + fs.unlink log, (err) => + console.log(err) if err finished()