FrancescoXX / FrancescoXX/fullstack-rust-nextjs

Unwrapped Errors in `handle_post_request` Function Without Graceful Handling.

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
50
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.