More verbose error response in register endpoint
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -96,7 +96,7 @@ func HandleAccountRegister(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
err = db.AddAccountRecord(uuid, request.Username, argon2.IDKey([]byte(request.Password), salt, argonTime, argonMemory, argonThreads, argonKeyLength), salt)
|
||||
if err != nil {
|
||||
http.Error(w, "failed to add account record", http.StatusInternalServerError)
|
||||
http.Error(w, fmt.Sprintf("failed to add account record: %s", err), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user