aboutsummaryrefslogtreecommitdiff
path: root/clientapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-06-02 09:34:36 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2020-06-02 09:34:36 +0100
commita07fc0ef352ecc4ef21247cbbc6abaf536b31df3 (patch)
treecc46fd235deded7a6c62f896bdf6180834d0100c /clientapi
parent42e797de5e60f1e5e84d55655de74cc983a932ff (diff)
Return correct error to LookupRoomAlias
Diffstat (limited to 'clientapi')
-rw-r--r--clientapi/routing/directory.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/directory.go b/clientapi/routing/directory.go
index b1dfb56f..3d4b5f5b 100644
--- a/clientapi/routing/directory.go
+++ b/clientapi/routing/directory.go
@@ -77,7 +77,7 @@ func DirectoryRoom(
if fedErr != nil {
// TODO: Return 502 if the remote server errored.
// TODO: Return 504 if the remote server timed out.
- util.GetLogger(req.Context()).WithError(err).Error("federation.LookupRoomAlias failed")
+ util.GetLogger(req.Context()).WithError(fedErr).Error("federation.LookupRoomAlias failed")
return jsonerror.InternalServerError()
}
res.RoomID = fedRes.RoomID