Combines an array of errors into a single array.
A single error.
import {combineErrors} from '@augment-vir/common';const result1 = combineErrors([ new Error('message 1'), new Error('message 2'),]); // result1 is a single error with the message 'message 1\nmessage 2' Copy
import {combineErrors} from '@augment-vir/common';const result1 = combineErrors([ new Error('message 1'), new Error('message 2'),]); // result1 is a single error with the message 'message 1\nmessage 2'
@augment-vir/common
Combines an array of errors into a single array.