diff --git a/src/deployments/cdk/promise.ts b/src/deployments/cdk/promise.ts index 4d34d3ef3..cf5ea8a1f 100644 --- a/src/deployments/cdk/promise.ts +++ b/src/deployments/cdk/promise.ts @@ -4,7 +4,7 @@ export async function fulfillAll(promises: Promise[]): Promise { 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);