openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 588 B
JavaScript
import{St as e}from"./sqlite-readonly-subsystem-C-VJT-xk.mjs";function throwSettledAggregate(e,t){let n=e.flatMap(e=>e.status===`rejected`?[e.reason]:[]);if(n.length)throw AggregateError(n,t)}function materializeErrorStack(t){try{for(let n of e(t))try{if(!(n instanceof Error))continue;try{n.stack=String(n.stack)}catch{n.stack=`Stack trace unavailable: custom formatter failed`}}catch{}}catch{}}function collectSynchronousErrors(e,t){let n=[];for(let r of e)try{t(r)}catch(e){n.push(e)}return n}export{materializeErrorStack as n,throwSettledAggregate as r,collectSynchronousErrors as t};