Browse Source
Previously the catch block treated all insert errors as "username already exists". Now it checks the error message for UNIQUE/SQLITE_CONSTRAINT and only returns the duplicate-username message for that case. Other errors are logged and return a generic failure message. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>feat/registration-page
1 changed files with 10 additions and 3 deletions
Loading…
Reference in new issue