🔊 add error message for config file
parent
80c43caf71
commit
89d4fdbcc3
|
@ -47,7 +47,13 @@ fn main ()
|
||||||
let app = app::App::default();
|
let app = app::App::default();
|
||||||
let mut wind = Window::new (100, 100, 500, 180, "PTTH server");
|
let mut wind = Window::new (100, 100, 500, 180, "PTTH server");
|
||||||
|
|
||||||
let config_file_opt = ptth_server::load_toml::load::<ConfigFile, _> ("./config/ptth_server.toml").ok ();
|
let config_file_opt = match ptth_server::load_toml::load::<ConfigFile, _> ("./config/ptth_server.toml") {
|
||||||
|
Ok (x) => Some (x),
|
||||||
|
Err (e) => {
|
||||||
|
eprintln! ("Error in `./config/ptth_server.toml`: {:?}", e);
|
||||||
|
None
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
let (hit_tx, mut hit_rx) = mpsc::channel (1);
|
let (hit_tx, mut hit_rx) = mpsc::channel (1);
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue