change a potentially bug-hiding 'unwrap_or' call into 'expect' for clear messaging

This commit is contained in:
alpaylan
2025-02-03 09:57:04 -05:00
parent 8490184644
commit 1b3d2004cc

View File

@@ -196,7 +196,7 @@ impl Property {
}),
});
let limit = select.limit.unwrap_or(0);
let limit = select.limit.expect("Property::SelectLimit without a LIMIT clause");
let assertion = Interaction::Assertion(Assertion {
message: "select query should respect the limit clause".to_string(),