update get_post_light to return none when no data is found, so not found error can happen #53

Merged
realaravinth merged 1 commit from halkeye/libmedium:handle-post-not-found into master 2024-07-28 16:14:19 +05:30
Contributor

tested with http://localhost:7000/@wjertzochjennifer/

now returns Post not found instead of

thread 'actix-rt|system:0|arbiter:0' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'actix-rt|system:0|arbiter:1' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
thread 'actix-rt|system:0|arbiter:2' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
thread 'actix-rt|system:0|arbiter:3' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
thread 'actix-rt|system:0|arbiter:4' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
thread 'actix-rt|system:0|arbiter:5' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
thread 'actix-rt|system:0|arbiter:6' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
thread 'actix-rt|system:0|arbiter:7' panicked at src/data.rs:186:77:                                                                                                                                                                                                          called `Option::unwrap()` on a `None` value
thread 'actix-rt|system:0|arbiter:8' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
thread 'actix-rt|system:0|arbiter:9' panicked at src/data.rs:186:77:
called `Option::unwrap()` on a `None` value
tested with http://localhost:7000/@wjertzochjennifer/ now returns `Post not found` instead of ``` thread 'actix-rt|system:0|arbiter:0' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread 'actix-rt|system:0|arbiter:1' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value thread 'actix-rt|system:0|arbiter:2' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value thread 'actix-rt|system:0|arbiter:3' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value thread 'actix-rt|system:0|arbiter:4' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value thread 'actix-rt|system:0|arbiter:5' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value thread 'actix-rt|system:0|arbiter:6' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value thread 'actix-rt|system:0|arbiter:7' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value thread 'actix-rt|system:0|arbiter:8' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value thread 'actix-rt|system:0|arbiter:9' panicked at src/data.rs:186:77: called `Option::unwrap()` on a `None` value ```
halkeye added 1 commit 2024-07-28 03:41:46 +05:30
update get_post_light to return none when no data is found, so not found error can happen
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
3111f3e25c
realaravinth approved these changes 2024-07-28 16:14:14 +05:30
realaravinth left a comment
Owner

Appreciate it, thanks!

Appreciate it, thanks!
realaravinth merged commit eb5f3067c1 into master 2024-07-28 16:14:19 +05:30
Sign in to join this conversation.
No description provided.