[yabridgectl] Make scanning errors non-fatal

This should never occur, but somehow people have text files with .dll or
.vst3 extensions in their plugin directories.

This resolves #185.
This commit is contained in:
Robbert van der Helm
2022-06-25 13:29:23 +02:00
parent 687bee34d5
commit 414fd97216
3 changed files with 29 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ pub struct Pe32Info {
pub fn parse_pe32_binary<P: AsRef<Path>>(binary: P) -> Result<Pe32Info> {
parse_pe32_goblin(&binary).or_else(|err| {
parse_pe32_winedump(binary)
.with_context(|| format!("Parsing with goblin also failed: {err}"))
.with_context(|| format!("Failed to parse with both winedump and goblin: {err}"))
})
}