summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/pdb-ng/src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pdb-ng/src/parser.rs b/plugins/pdb-ng/src/parser.rs
index 8c33fe64..bb597985 100644
--- a/plugins/pdb-ng/src/parser.rs
+++ b/plugins/pdb-ng/src/parser.rs
@@ -121,7 +121,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
let default_cc = platform
.get_default_calling_convention()
- .expect("Expected default calling convention");
+ .ok_or_else(|| anyhow!("Cannot parse to view with no default calling convention"))?;
let thiscall_cc = Self::find_calling_convention(platform.as_ref(), "thiscall")
.unwrap_or(default_cc.clone());