添加没有写入权限的提示

This commit is contained in:
lyswhut
2020-08-30 12:25:02 +08:00
parent 86478c0268
commit 04c810e292
3 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ class Task extends EventEmitter {
this.chunkInfo.startByte = 0
this.resumeLastChunk = null
this.progress.downloaded = 0
if (unlinkErr) this.__handleError(unlinkErr)
if (unlinkErr && unlinkErr.code !== 'ENOENT') this.__handleError(unlinkErr)
})
})
}