Skip to content

Commit 87c9d71

Browse files
committed
Upgrade lib
1 parent 3e57c32 commit 87c9d71

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/service/agent.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,13 @@ async function executeJob(jobInfo, keepFiles) {
229229
// Remove temporary directory when `keepFiles` is false
230230
if (!keepFiles) {
231231
// tmpDir.removeCallback();
232-
console.log('QQQQQQ tmpDirPath', tmpDirPath);
233-
fs.rmSync(tmpDirPath, { recursive: true, force: true });
232+
try {
233+
console.log('QQQQQQ1 tmpDirPath', tmpDirPath);
234+
fs.rmSync(tmpDirPath, { recursive: true, force: true });
235+
console.log('QQQQQQ2 tmpDirPath', tmpDirPath);
236+
} catch (err) {
237+
logger.error('Error when removing tmp directory:', err);
238+
}
234239
}
235240
}
236241
}

0 commit comments

Comments
 (0)