Print helpful message on startup

This commit is contained in:
Magnus Hoff 2017-08-22 16:40:18 +02:00
parent df63c25646
commit 62812c2ddf

View file

@ -56,6 +56,8 @@ fn core_main() -> Result<(), Box<std::error::Error>> {
move || Ok(site::Site::new(state::State::new(db::connect_database(&db_file, false)))) move || Ok(site::Site::new(state::State::new(db::connect_database(&db_file, false))))
)?; )?;
println!("Listening on http://{}", server.local_addr().unwrap());
server.run()?; server.run()?;
Ok(()) Ok(())