mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-07 10:14:21 +01:00
change a potentially bug-hiding 'unwrap_or' call into 'expect' for clear messaging
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user