Skip to content

Commit 35bb012

Browse files
committed
fix: try to prevent OOM error handler
1 parent 830d68d commit 35bb012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/batch/tasks/init-job-repo.task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function initJobRepo(job: string): ListrTask {
3838
process.chdir(repoPath);
3939
} catch (error: any) {
4040
await wait();
41-
throw new error();
41+
throw error;
4242
}
4343
},
4444
};

0 commit comments

Comments
 (0)