Skip to content

Commit

Permalink
Fix build error; allow errors to be reported in worker mode. (#128)
Browse files Browse the repository at this point in the history
This addresses #127 and #96.
  • Loading branch information
BobobUnicorn authored Dec 22, 2020
1 parent 6d2087e commit 6d723f0
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 6d723f0

Please sign in to comment.