diff --git a/packages/internal/src/utils.js b/packages/internal/src/utils.js index 3a5f702a092..0733fbf2deb 100644 --- a/packages/internal/src/utils.js +++ b/packages/internal/src/utils.js @@ -110,9 +110,10 @@ const makeAggregateError = typeof AggregateError === 'function' ? (errors, message, options) => AggregateError(errors, message, options) : (errors, message, options) => { - const err = makeError(message ?? 'multiple errors', undefined, options); - annotateError(err, X`${errors}`); - return err; + return makeError(message ?? 'multiple errors', undefined, { + ...options, + errors, + }); }; /**