fix: add error to log when user creation fails
This commit is contained in:
parent
65cd431c1a
commit
56e925a48d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user