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,