* @param {String} connectionString
(errors)
| 20 | * @param {String} connectionString |
| 21 | */ |
| 22 | constructor(errors) { |
| 23 | let preview = errors.map(e => e.message).join(', '); |
| 24 | if (preview.length > 50) { |
| 25 | preview = preview.slice(0, 50) + '...'; |
| 26 | } |
| 27 | super(`eachAsync() finished with ${errors.length} errors: ${preview}`); |
| 28 | |
| 29 | this.errors = errors; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | Object.defineProperty(EachAsyncMultiError.prototype, 'name', { |
nothing calls this directly
no outgoing calls
no test coverage detected