This pull request introduces error handling for database errors that may occur during the user registration process. It aims to enhance the robustness of the registration endpoint by providing clear feedback when a user cannot be created due to database issues.
Summary
Added error handling in the /register endpoint to check if a new user was successfully created. If not, it returns a 500 status code with a message indicating a database error.
Modified file: routes/auth.routes.js
Fixes #127.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request introduces error handling for database errors that may occur during the user registration process. It aims to enhance the robustness of the registration endpoint by providing clear feedback when a user cannot be created due to database issues.
Summary
/register
endpoint to check if a new user was successfully created. If not, it returns a500
status code with a message indicating a database error.routes/auth.routes.js
Fixes #127.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.