freetonik / textpod

Extremely simple note-taking app inspired by "One Big Text File"
GNU General Public License v3.0
200 stars 12 forks source link

Handle 'address already in use' gracefully #1

Closed freetonik closed 4 weeks ago

freetonik commented 1 month ago

Currently, the error is not user-friendly:

Server running on http://127.0.0.1:3000
thread 'main' panicked at /Users/rakhim/.cargo/registry/src/index.crates.io-6f17d22bba15001f/textpod-0.1.0/src/main.rs:256:60:
called `Result::unwrap()` on an `Err` value: Os { code: 48, kind: AddrInUse, message: "Address already in use" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
freetonik commented 4 weeks ago

https://github.com/freetonik/textpod/pull/7