Skip to content

🎥 Make videos programmatically with React

cleanup in case of error

Jonny Burger0fda408cf108
diff --git a/packages/cli/src/index.tsx b/packages/cli/src/index.tsx
index be797ead87..1ff5951150 100644
--- a/packages/cli/src/index.tsx
+++ b/packages/cli/src/index.tsx
@@ -88,6 +88,7 @@ export const cli = async () => {
} catch (err) {
Log.info();
await handleCommonError(err as Error);
+ cleanupBeforeQuit();
process.exit(1);
} finally {
RenderInternals.unlockErrorSymbolicationLock(errorSymbolicationLock);