Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): hide stacktraces from dart-sass e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
alan-agius4 authored and clydin committed May 26, 2021
1 parent 6e07cb1 commit 02bea8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/angular_devkit/build_angular/src/sass/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ parentPort.on('message', (message: RenderRequestMessage | InitMessage) => {

parentPort?.postMessage({ id, result });
} catch (error) {
parentPort?.postMessage({ id, error });
// Needed because V8 will only serialize the message and stack properties of an Error instance.
const { formatted, file, line, column, message, stack } = error;
parentPort?.postMessage({ id, error: { formatted, file, line, column, message, stack } });
}
});

0 comments on commit 02bea8c

Please sign in to comment.