diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index 4f93f250..058f43f7 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -207,7 +207,9 @@ export class NTQQFileApi { throw new Error('文件异常,大小为0'); } if (converted) { - fsPromises.unlink(silkPath); + fsPromises.unlink(silkPath).then().catch( + (e) => this.context.logger.logError('删除临时文件失败', e) + ); } return { elementType: ElementType.PTT,