feat(engines): do not silence manifest read errors

Now reading the manifest will only be silenced if
the error's cause is the manifest not being found.
This commit is contained in:
daimond113 2025-01-16 22:44:05 +01:00
parent 684f711d93
commit 6ae7e5078c
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -286,11 +286,13 @@ async fn run() -> anyhow::Result<()> {
break 'engines; break 'engines;
}; };
let req = project let req = match project.deser_manifest().await {
.deser_manifest() Ok(mut manifest) => manifest.engines.remove(&engine),
.await Err(pesde::errors::ManifestReadError::Io(e)) if e.kind() == io::ErrorKind::NotFound => {
.ok() None
.and_then(|mut manifest| manifest.engines.remove(&engine)); }
Err(e) => return Err(e.into()),
};
if engine == EngineKind::Pesde { if engine == EngineKind::Pesde {
match &req { match &req {