This pull request introduces additional error handling logic in the user registration process. It specifically addresses the scenario where invalid data is provided by the client during the registration process, improving the robustness and user feedback of the registration endpoint.
Summary
Added handling for ValidationError in the user registration endpoint to return a more specific error message when user creation fails due to invalid data.
This change affects the register route in the routes/auth.routes.js file, enhancing the error feedback mechanism for the client.
Fixes #125.
π 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 additional error handling logic in the user registration process. It specifically addresses the scenario where invalid data is provided by the client during the registration process, improving the robustness and user feedback of the registration endpoint.
Summary
ValidationError
in the user registration endpoint to return a more specific error message when user creation fails due to invalid data.register
route in theroutes/auth.routes.js
file, enhancing the error feedback mechanism for the client.Fixes #125.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.