mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-19 09:07:36 +08:00
Two issues in attachment handling: 1. GetAttachments failure called panic(err) instead of returning an error, crashing the process on any API failure. 2. The 'keeping unmodified' log loop indexed into the original attachments slice using the range of existing, causing wrong names to be logged and a potential out-of-bounds panic when existing is longer than attachments. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>