fix(GODT-2935): Correct error message when draft fails to create
This commit is contained in:
parent
405331d59b
commit
09ef3b20db
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue