logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-04 08:56:25 +10:00
parent 93385646b6
commit 61f2813802

View File

@@ -55,7 +55,7 @@ func Register(c *gin.Context) {
if (models.User{} == testUser) {
log.Printf("Register confirmed no existing username\n")
} else {
err := errors.New("attempt to register conflicting username")
err := errors.New("attempt to register conflicting username '" + u.UserName + "'")
log.Printf("Register error : '%s'\n", err)
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return