Return an error code from dmdoc if no .dme exists

This commit is contained in:
Tad Hardesty 2020-09-21 22:19:50 -07:00
parent a1628f286c
commit b47b7772cc

View file

@ -71,8 +71,7 @@ fn main2() -> Result<(), Box<dyn std::error::Error>> {
None => match dm::detect_environment_default()? {
Some(env) => env,
None => {
eprintln!("Unable to find a .dme file in this directory");
return Ok(());
return Err("Unable to find a .dme file in this directory".into());
}
}
};