Skip to content

🎥 Make videos programmatically with React

log error if one happens

Jonny Burgere9436e736713
diff --git a/packages/lambda/src/functions/index.ts b/packages/lambda/src/functions/index.ts
index dea63dae34..ffe21ef11b 100644
--- a/packages/lambda/src/functions/index.ts
+++ b/packages/lambda/src/functions/index.ts
@@ -14,6 +14,7 @@ import {rendererHandler} from './renderer';
import {startHandler} from './start';
import {stillHandler} from './still';
import {randomHash} from '../shared/random-hash';
+import {Log} from '../cli/log';
export const handler = streamifyResponse(
async (
@@ -53,6 +54,7 @@ export const handler = streamifyResponse(
responseStream.write(JSON.stringify(response));
responseStream.end();
} catch (err) {
+ Log.error(err);
responseStream.write(
JSON.stringify({
type: 'error',