From 681d74635ff5ecf1b9967056bf1229d8a8969aa6 Mon Sep 17 00:00:00 2001 From: Derek Meer Date: Thu, 2 Aug 2018 16:36:18 -0700 Subject: [PATCH] fix build --- .../matrix-org/dendrite/appservice/routing/user.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/appservice/routing/user.go b/src/github.com/matrix-org/dendrite/appservice/routing/user.go index 3373a4745..4157cd45b 100644 --- a/src/github.com/matrix-org/dendrite/appservice/routing/user.go +++ b/src/github.com/matrix-org/dendrite/appservice/routing/user.go @@ -40,7 +40,10 @@ func URIToUID(req *http.Request, cfg config.Dendrite) util.JSONResponse { if err == nil { body, _ := ioutil.ReadAll(resp.Body) respMap := map[string]interface{}{} - json.Unmarshal(body, &respMap) + err := json.Unmarshal(body, &respMap) + if err != nil { + panic(err) + } if userID, ok := respMap["userid"].(string); ok { return util.JSONResponse{ Code: http.StatusOK,