fix(ui): handle errors during cleanup

This commit is contained in:
psychedelicious
2025-06-28 18:23:30 +10:00
parent c196f8a5d5
commit 161059551b

View File

@@ -159,7 +159,11 @@ export const runGraph = (arg: RunGraphArg): Promise<RunGraphReturn> => {
const cleanupFunctions: Set<() => void> = new Set();
const cleanup = () => {
for (const func of cleanupFunctions) {
func();
try {
func();
} catch (error) {
log.warn({ error: parseify(error) }, 'Error during cleanup');
}
}
};