try { await Promise.any([ Promise.reject("a"), Promise.reject("b"), ]); } catch (e) { console.log(e.constructor.name, e.errors); }