Skip to content

Commit

Permalink
updated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hickeydh-aws committed Oct 11, 2023
1 parent 8ac4454 commit a9fab46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deployments/cdk/promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function fulfillAll<T>(promises: Promise<T>[]): Promise<T[]> {
const promiseResults = await Promise.allSettled(promises);
const rejectedResults = promiseResults.filter(promiseIsRejected);
if (rejectedResults.length > 0) {
const reasons = rejectedResults.map(r => `${r.reason}`);
const reasons = rejectedResults.map(r => `${r.reason}\n${r.reason.stack}`);
throw new Error(reasons.join('\n'));
}
const fulfilledResults = promiseResults.filter(promiseIsFulfilled);
Expand Down

0 comments on commit a9fab46

Please sign in to comment.