From 3cea54db0bcf568b131432a45b9ff51fe3f97689 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Mon, 22 May 2017 10:27:02 +0200 Subject: [PATCH] mediaapi/writers/download: Simplify user error message They already known the origin and media ID so it is redundant. --- src/github.com/matrix-org/dendrite/mediaapi/writers/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go b/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go index 13e24f2ff..4af7b47b8 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go @@ -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