fix: add error to log when user creation fails

This commit is contained in:
Jordan Knott 2021-09-13 11:22:48 -05:00
parent 65cd431c1a
commit 56e925a48d

View File

@ -334,7 +334,7 @@ func (h *TaskcafeHandler) RegisterUser(w http.ResponseWriter, r *http.Request) {
Active: false,
})
if err != nil {
log.Error("issue registering user account")
log.WithError(err).Error("issue registering user account")
w.WriteHeader(http.StatusInternalServerError)
return
}