set_current_dir: don't unwrap, return error
the difference is a panic vs a clean error
This commit is contained in:
parent
01f0001594
commit
9058452d93
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ fn main() -> Result<(), std::io::Error> {
|
|||
env_logger::init();
|
||||
|
||||
let root = std::path::PathBuf::from(chdir).canonicalize()?;
|
||||
std::env::set_current_dir(&root).unwrap();
|
||||
std::env::set_current_dir(&root)?;
|
||||
|
||||
let sys = actix::System::new("http_server_rs");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue