Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Handle access error when writing binary to cache
Browse files Browse the repository at this point in the history
I'm not sure why the throw isn't being caught. Probably some async
thing. Don't have time to look into it atm.
  • Loading branch information
xzyfer committed Nov 14, 2016
1 parent aa76f8f commit 59beffc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ function checkAndDownloadBinary() {
mkdir.sync(path.dirname(cachedBinary));
fs.createReadStream(binaryPath)
.pipe(fs.createWriteStream(cachedBinary))
.on('error', function (e) { throw e; });
.on('error', function (e) {
log.error('node-sass install', 'Failed to cache binary: %s', err);
});
} catch (err) {
log.error('node-sass install', 'Failed to cache binary: %s', err);
}
Expand Down

0 comments on commit 59beffc

Please sign in to comment.