瀏覽代碼

Fix error log

Tulir Asokan 2 年之前
父節點
當前提交
5a40f0a2ab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      portal.go

+ 1 - 1
portal.go

@@ -602,7 +602,7 @@ func (portal *Portal) handleDiscordMessageCreate(user *User, msg *discordgo.Mess
 		}
 		resp, err := portal.sendMatrixMessage(intent, part.Type, part.Content, part.Extra, ts.UnixMilli())
 		if err != nil {
-			portal.log.Errorfln("Failed to send part #%d (attachment ID %q) of message %s to Matrix: %v", i+1, part.AttachmentID, msg.ID)
+			portal.log.Errorfln("Failed to send part #%d (attachment ID %q) of message %s to Matrix: %v", i+1, part.AttachmentID, msg.ID, err)
 			continue
 		}
 		lastThreadEvent = resp.EventID