chore: improve log output for protocol fetch with multiple messages

This commit is contained in:
pk5ls20 committed 2025-04-04 01:59:31 +08:00
1 parent 42d695f3e5
commit a07d253ff5
1 file changed
+2 -1
+2 -1
View File
@@ -373,7 +373,8 @@ export class OneBotMsgApi {
try { try {
multiMsgs = await this.core.apis.PacketApi.pkt.operation.FetchForwardMsg(element.resId); multiMsgs = await this.core.apis.PacketApi.pkt.operation.FetchForwardMsg(element.resId);
} catch (e) { } catch (e) {
this.core.context.logger.logError('Protocol FetchForwardMsg fallback failed!', e); this.core.context.logger.logError(`Protocol FetchForwardMsg fallback failed!
element = ${JSON.stringify(element)} , error=${e})`);
return null; return null;
} }
} }