diff --git a/portal.go b/portal.go index a166838..0f0fc8a 100644 --- a/portal.go +++ b/portal.go @@ -2974,7 +2974,7 @@ func (portal *Portal) preprocessMatrixMedia(ctx context.Context, sender *User, r // Everything is allowed } if convertErr != nil { - return nil, util.NewDualError(fmt.Errorf("%w (%s to %s)", errMediaConvertFailed, mimeType, content.Info.MimeType), err) + return nil, util.NewDualError(fmt.Errorf("%w (%s to %s)", errMediaConvertFailed, mimeType, content.Info.MimeType), convertErr) } uploadResp, err := sender.Client.Upload(ctx, data, mediaType) if err != nil {