This commit is contained in:
Quaternions 2024-01-23 17:46:18 -08:00
parent 7863137174
commit 9f3bd80403

View File

@ -1244,6 +1244,11 @@ async fn discern_node(search_path:&std::path::PathBuf,search_name:&str,style:Opt
} }
}, },
(Ok(_),Ok(_))=>Err(QueryResolveError::Ambiguous)?, (Ok(_),Ok(_))=>Err(QueryResolveError::Ambiguous)?,
//neither
(Err(QueryResolveError::NotFound),Err(QueryResolveError::NotFound))=>CompileNode{
class:CompileClass::Folder,
folder:Some(dir),
},
//other error //other error
(Err(e),_) (Err(e),_)
|(_,Err(e))=>Err(e)? |(_,Err(e))=>Err(e)?