diff --git a/@xen-orchestra/xapi/_AggregateError.js b/@xen-orchestra/xapi/_AggregateError.js new file mode 100644 index 000000000..07b8f3650 --- /dev/null +++ b/@xen-orchestra/xapi/_AggregateError.js @@ -0,0 +1,9 @@ +'use strict' + +// TODO: remove when Node >=15.0 +module.exports = class AggregateError extends Error { + constructor(errors, message) { + super(message) + this.errors = errors + } +}