Skip to content

Commit

Permalink
Fix build error; allow errors to be reported in worker mode.
Browse files Browse the repository at this point in the history
This addresses bazelbuild#127 and bazelbuild#96.
  • Loading branch information
BobobUnicorn committed Dec 22, 2020
1 parent 6d2087e commit a2e6f54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sass/sass_wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ const fs = require('fs');
const args = process.argv.slice(2);
if (runAsWorker(args)) {
debug('Starting Sass compiler persistent worker...');
runWorkerLoop(args => sass.cli_pkg_main_0_(args));
runWorkerLoop(args =>
sass.cli_pkg_main_0_(args)
.then(() => true)
.catch(() => false)
);
// Note: intentionally don't process.exit() here, because runWorkerLoop
// is waiting for async callbacks from node.
} else {
Expand Down

0 comments on commit a2e6f54

Please sign in to comment.