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;
};
let req = project
.deser_manifest()
.await
.ok()
.and_then(|mut manifest| manifest.engines.remove(&engine));
let req = match project.deser_manifest().await {
Ok(mut manifest) => manifest.engines.remove(&engine),
Err(pesde::errors::ManifestReadError::Io(e)) if e.kind() == io::ErrorKind::NotFound => {
None
}
Err(e) => return Err(e.into()),
};
if engine == EngineKind::Pesde {
match &req {