From 4fb3e00df516ca6e375c3c09755b136238fefd1a Mon Sep 17 00:00:00 2001 From: Jerryplusy Date: Wed, 17 Sep 2025 18:30:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/openlist/openlist.utils.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/openlist/openlist.utils.ts b/src/core/openlist/openlist.utils.ts index 414b6f3..2abf489 100644 --- a/src/core/openlist/openlist.utils.ts +++ b/src/core/openlist/openlist.utils.ts @@ -96,11 +96,11 @@ export class OpenListUtils { data: data, }; const response = await axios(config); - this.logger.log('获取文件信息成功..'); + this.logger.log(`获取文件信息成功: ${filePath}`); return response.data; } catch (error) { - this.logger.error('获取文件信息失败..', error); - throw new Error('获取文件信息失败..'); + this.logger.error(`获取文件信息失败: ${filePath}`, error); + throw new Error(`获取文件信息失败 ${filePath}`); } } @@ -135,13 +135,13 @@ export class OpenListUtils { resolve(); }); writer.on('error', (error) => { - this.logger.error('下载文件失败', error); - reject(new Error('下载文件失败..')); + this.logger.error(`下载文件失败: ${filePath}`, error); + reject(new Error(`下载文件失败: ${filePath}`)); }); }); } catch (error) { - this.logger.error('下载文件失败..', error); - throw new Error('下载文件失败..'); + this.logger.error(`下载文件失败: ${filePath}`, error); + throw new Error(`下载文件失败: ${filePath}`); } }