diff --git a/tools/yabridgectl/src/symbols.rs b/tools/yabridgectl/src/symbols.rs index d135f1bc..16a49fed 100644 --- a/tools/yabridgectl/src/symbols.rs +++ b/tools/yabridgectl/src/symbols.rs @@ -96,7 +96,9 @@ fn parse_pe32_winedump>(binary: P) -> Result { } Err(_) => None, }) - .ok_or_else(|| anyhow!("Winedump output did not contain a 'Machine:' line"))?; + .ok_or_else(|| { + anyhow!("Winedump output did not contain a 'Machine:' line. Is a text file?") + })?; // And we'll just parse _all_ exported functions. Previously we would only check whether this // contrained certain entries, but efficiency isn't too important here anyways since this is