Replace .unwrap() with proper error handling in HTTP handlers #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium
crates/presentation/src/handlers/thoughts.rs— two places call.unwrap()on serialization in request handlers:If serialization fails for any reason, this panics and kills the request with a 500 instead of returning a proper error. Propagate with
?or.map_err().