fullstack-rust-nextjs icon indicating copy to clipboard operation
fullstack-rust-nextjs copied to clipboard

Unwrapped Errors in `handle_post_request` Function Without Graceful Handling.

Open dhananjaykdhani opened this issue 6 months ago • 1 comments

There is an issue in the code related to unwrapping errors without proper handling in the handle_post_request function. Specifically, when attempting to execute the query_one method to insert a new user into the database, if an error occurs, it directly unwraps it, which may result in a panic and termination of the program. It's essential to handle errors more gracefully and return an appropriate response in case of failure.

dhananjaykdhani avatar Dec 28 '23 10:12 dhananjaykdhani