2.0 Refactor #2
|
@ -16,7 +16,8 @@ async fn main() {
|
|||
}
|
||||
|
||||
pub async fn run() -> anyhow::Result<()> {
|
||||
let cfg_path = find_config("conductor.yml").unwrap();
|
||||
let cfg_path = find_config("conductor.yml")
|
||||
.ok_or_else(|| anyhow::anyhow!("No config file found. Create a conductor.yml.\nSee http://conductor.5sigma.io/articles/config"))?;
|
||||
|
||||
std::env::set_current_dir(cfg_path.parent().unwrap())?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue