🎥 Make videos programmatically with React
Update inspect-errors.ts
Jonny Burgerf534dc926ed5
diff --git a/packages/lambda/src/functions/helpers/inspect-errors.ts b/packages/lambda/src/functions/helpers/inspect-errors.tsindex c737b19b74..b29f2e2e36 100644--- a/packages/lambda/src/functions/helpers/inspect-errors.ts+++ b/packages/lambda/src/functions/helpers/inspect-errors.ts@@ -7,16 +7,23 @@ export const FAILED_TO_LAUNCH_TOKEN = 'Failed to launch browser.';const getExplanation = (stack: string) => {if (stack.includes('FATAL:zygote_communication_linux.cc')) {- return 'Your lambda function reached the 512MB storage limit. Reduce the amount of space needed per lambda function. Feel free to reach out to #lambda Discord for help';+ return (+ FAILED_TO_LAUNCH_TOKEN ++ 'Will be retried - you can probably ignore this error.'+ );}- if (stack.includes('FATAL:zygote_communication_linux.cc')) {+ if (stack.includes('error while loading shared libraries: libnss3.so')) {return (FAILED_TO_LAUNCH_TOKEN +'Will be retried - you can probably ignore this error.');}+ if (stack.includes('ENOSPC')) {+ return 'Your lambda function reached the 512MB storage limit. Reduce the amount of space needed per lambda function. Feel free to reach out to #lambda Discord for help';+ }+return null;};