mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
fix(GODT-2935): Correct error message when draft fails to create
This commit is contained in:
@ -220,7 +220,7 @@ func (s *Service) sendWithKey(
|
|||||||
ExternalID: message.ExternalID,
|
ExternalID: message.ExternalID,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return proton.Message{}, fmt.Errorf("failed to create attachments: %w", err)
|
return proton.Message{}, fmt.Errorf("failed to create draft: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
attKeys, err := s.createAttachments(ctx, s.client, addrKR, draft.ID, message.Attachments)
|
attKeys, err := s.createAttachments(ctx, s.client, addrKR, draft.ID, message.Attachments)
|
||||||
|
|||||||
Reference in New Issue
Block a user