diff --git a/main.go b/main.go index 756cca2..fe7966f 100644 --- a/main.go +++ b/main.go @@ -936,10 +936,11 @@ func main() { if errors.Is(err, sqlite3.ErrConstraint) { c.String(400, "Only one login is permitted at a time. Please try again later.") return + } else { + log.Println("[ERROR] Unknown in /api/auth insert at", strconv.FormatInt(time.Now().Unix(), 10)+":", err) + c.String(500, "Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-AUTH-INSERT.") + return } - log.Println("[ERROR] Unknown in /api/auth insert at", strconv.FormatInt(time.Now().Unix(), 10)+":", err) - c.String(500, "Something went wrong on our end. Please report this bug at https://centrifuge.hectabit.org/hectabit/burgerauth and refer to the docs for more info. Your error code is: UNKNOWN-API-AUTH-INSERT.") - return } if randomBytes != "" {