mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Return an error code from dmdoc if no .dme exists
This commit is contained in:
parent
a1628f286c
commit
b47b7772cc
1 changed files with 1 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue