fix(GODT-2935): Correct error message when draft fails to create

This commit is contained in:
Leander Beernaert 2023-10-25 15:54:46 +02:00
parent 405331d59b
commit 09ef3b20db
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ func (s *Service) sendWithKey(
ExternalID: message.ExternalID,
})
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)