forked from MirrorHub/mautrix-whatsapp
Fix media conversion errors not including actual error
This commit is contained in:
parent
985b33fd7c
commit
b923a39d76
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue