Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Cloudflare outage on November 18, 2025 post mortem. Parent comment
1:
?
map_err, or, or_else, etc.
match ... { Ok(..) => {}, Err(..) => {}, }
if let ... { }
The function signature returned a `Result<(), (ErrorFlags, i32)>`
Seems like it should have returned an Err((ErrorFlags, i32)) here. Case 2 or 3 above would have done nicely.
Removing unwrap() from Rust would have forced the proper handling of the function call and would have prevented this.
Unwrap() is Rust's original sin.
There are no comments on this comment yet.
1:
2: 3: 4: Then it would have been idiomatic Rust code and wouldn't have failed at all.The function signature returned a `Result<(), (ErrorFlags, i32)>`
Seems like it should have returned an Err((ErrorFlags, i32)) here. Case 2 or 3 above would have done nicely.
Removing unwrap() from Rust would have forced the proper handling of the function call and would have prevented this.
Unwrap() is Rust's original sin.