mediaapi/writers/download: Simplify user error message

They already known the origin and media ID so it is redundant.
This commit is contained in:
Robert Swain 2017-05-22 10:27:02 +02:00
parent 5f604cc41f
commit 3cea54db0b

View file

@ -464,7 +464,7 @@ func (r *downloadRequest) respondFromRemoteFile(w http.ResponseWriter, absBasePa
if bytesResponded < 1 {
r.jsonErrorResponse(w, util.JSONResponse{
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 {
// We attempt to bluntly close the connection because that is the