Commit efaab284 by xzyfer

Handle access error when writing binary to cache

parent 21ee4e30
......@@ -135,7 +135,9 @@ function checkAndDownloadBinary() {
try {
mkdir.sync(path.dirname(cachedBinary));
fs.createReadStream(binaryPath).pipe(fs.createWriteStream(cachedBinary));
fs.createReadStream(binaryPath)
.pipe(fs.createWriteStream(cachedBinary))
.on('error', function (e) { throw e; });
} catch (err) {
log.error('node-sass install', 'Failed to cache binary: %s', err);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment