From 91587eeaf27a0e619f57d34ff43ec84d5c58bf2d Mon Sep 17 00:00:00 2001 From: Anant Prakash Date: Thu, 31 May 2018 16:39:19 +0530 Subject: [PATCH] Add appropriate log msg --- .../matrix-org/dendrite/clientapi/routing/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go index 4f267532d..cb427b710 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go @@ -415,7 +415,7 @@ func Register( if r.Username == "" { id, err := accountDB.GetNewNumericLocalpart(req.Context()) if err != nil { - return jsonerror.InternalServerError() + return httputil.LogThenError(req, err) } r.Username = strconv.FormatInt(id, 10)