Skip to content

Commit

Permalink
fixup! fixup! lib: aggregate errors to avoid error swallowing
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Mar 14, 2021
1 parent 41b580b commit f745e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/message/error_aggregateTwoErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { aggregateTwoErrors } = require('internal/errors');
const originalError = new Error('original');
const err = new Error('second error');

originalError.code = 'ERR0'
err.code = 'ERR1'
originalError.code = 'ERR0';
err.code = 'ERR1';

throw aggregateTwoErrors(err, originalError);

0 comments on commit f745e80

Please sign in to comment.