Add appropriate log msg

This commit is contained in:
Anant Prakash 2018-05-31 16:39:19 +05:30
parent 8e2cfe6b39
commit 91587eeaf2
No known key found for this signature in database
GPG key ID: C5D399F626523045

View file

@ -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)