Skip to content

Commit

Permalink
Don't abort deploy if temporary folder cannot be deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Long committed Nov 28, 2017
1 parent 013bb7c commit 5dc162d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/prepareFunctionsUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ var _packageSource = function(options, tmpdir) {

reader.on('end', function() {
archive.finalize();
fs.removeSync(tmpdir.name);
try {
fs.removeSync(tmpdir.name);
} catch(e) {
logger.debug('Cannot remove ', tmpdir.name, e);
}
});
});
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"semver": "^5.0.3",
"superstatic": "^5.0.1",
"tar": "^3.1.5",
"tmp": "0.0.27",
"tmp": "0.0.33",
"universal-analytics": "^0.3.9",
"update-notifier": "^0.5.0",
"user-home": "^2.0.0",
Expand Down

0 comments on commit 5dc162d

Please sign in to comment.