Create an error from multiple errors
94
A utility for collecting and consolidating validation errors from different sources into a single error object for reporting.
@generates
/**
* Creates a validation error aggregator that collects multiple errors.
*
* @param {Array<Error|string|object>} errors - Array of errors in various formats
* @returns {Object} An object with an 'errors' property containing normalized Error instances
*/
function createValidationAggregator(errors) {
// IMPLEMENTATION HERE
}
module.exports = { createValidationAggregator };Provides error aggregation functionality
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-aggregate-errordocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9