mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-08 15:33:09 -06:00
mediaapi/writers/download: Simplify user error message
They already known the origin and media ID so it is redundant.
This commit is contained in:
parent
5f604cc41f
commit
3cea54db0b
|
|
@ -464,7 +464,7 @@ func (r *downloadRequest) respondFromRemoteFile(w http.ResponseWriter, absBasePa
|
||||||
if bytesResponded < 1 {
|
if bytesResponded < 1 {
|
||||||
r.jsonErrorResponse(w, util.JSONResponse{
|
r.jsonErrorResponse(w, util.JSONResponse{
|
||||||
Code: 502,
|
Code: 502,
|
||||||
JSON: jsonerror.Unknown(fmt.Sprintf("File with media ID %q could not be downloaded from %q", r.MediaMetadata.MediaID, r.MediaMetadata.Origin)),
|
JSON: jsonerror.Unknown(fmt.Sprintf("File could not be downloaded from remote server")),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// We attempt to bluntly close the connection because that is the
|
// We attempt to bluntly close the connection because that is the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue