Skip to content

🎥 Make videos programmatically with React

better stack

Jonny Burger12bc4141df70
diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.ts
index f1206d2f3c..df12e9ad25 100644
--- a/packages/lambda/src/functions/launch.ts
+++ b/packages/lambda/src/functions/launch.ts
@@ -476,7 +476,12 @@ const innerLaunchHandler = async (params: LambdaPayload, options: Options) => {
const firstError = errors[0];
if (firstError.chunk !== null) {
throw new Error(
- `Stopping Lambda function because error occurred while rendering chunk ${firstError.chunk}: ${errors[0].stack}`
+ `Stopping Lambda function because error occurred while rendering chunk ${
+ firstError.chunk
+ }:\n${errors[0].stack
+ .split('\n')
+ .map((s) => ` ${s}`)
+ .join('\n')}`
);
}