mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-13 11:38:31 +08:00
fix(ship-logs): Do not propogate fs errors (Sentry 6144)
This commit is contained in:
parent
716b4ec426
commit
d0c153590f
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue