[btree (rust)] Show out-of-order keys

This commit is contained in:
Ming-Hung Tsai 2021-03-12 12:37:07 +08:00
parent 0d46c606dd
commit e0eb8fea87

View File

@ -558,7 +558,7 @@ pub fn unpack_node<V: Unpack>(
for k in &keys {
if let Some(l) = last {
if k <= l {
return Err(node_err(&path, "keys out of order"));
return Err(node_err(&path, &format!("keys out of order: {} <= {}", k, l)));
}
}