diff --git a/controllers/auth.go b/controllers/auth.go index d8f8b9f..a188706 100644 --- a/controllers/auth.go +++ b/controllers/auth.go @@ -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