From 66b69a43b515b3de10b387445352dbf3a39e8ec5 Mon Sep 17 00:00:00 2001 From: Remi Reuvekamp Date: Wed, 15 Nov 2017 22:23:31 +0100 Subject: [PATCH] Make linters happy --- .../matrix-org/dendrite/clientapi/routing/createroom.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/createroom.go b/src/github.com/matrix-org/dendrite/clientapi/routing/createroom.go index 17941d202..29aa12081 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/createroom.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/createroom.go @@ -101,7 +101,10 @@ func CreateRoom(req *http.Request, device *authtypes.Device, queryReq := api.QueryReserveRoomIDRequest{RoomID: checkRoomID} var queryResp api.QueryReserveRoomIDResponse - queryAPI.QueryReserveRoomID(req.Context(), &queryReq, &queryResp) + err := queryAPI.QueryReserveRoomID(req.Context(), &queryReq, &queryResp) + if err != nil { + return httputil.LogThenError(req, err) + } if queryResp.Success { roomID = checkRoomID