We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5cf8e65 + 2b5bfa0 commit 726e02cCopy full SHA for 726e02c
1 file changed
libs/taskNew.js
@@ -304,8 +304,11 @@ module.exports = {
304
else{
305
if (++retries < 20){
306
logger.warn(`Cannot move ${srcPath}, probably caused by antivirus software (please disable it or add an exception), retrying (${retries})...`);
307
- setTimeout(2000, move);
308
- }else cb(err);
+ setTimeout(move, 2000);
+ } else {
309
+ logger.error(`Unable to move temp images (${srcPath}) after 20 retries. Error: ${err}`);
310
+ cb(err);
311
+ }
312
}
313
});
314
0 commit comments