From cacb6ecff8829c9cf1cda0149adcaa7dca617548 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 25 Jun 2022 13:53:30 +0200 Subject: [PATCH] [yabridgectl] Add another hint to parsing errors --- tools/yabridgectl/src/symbols.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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