Skip to content

Commit

Permalink
Fix: More specific error message in NullableIndexMap
Browse files Browse the repository at this point in the history
  • Loading branch information
raynelfss committed Jul 10, 2024
1 parent bb329af commit 35f6768
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ where
Some(k) => self.map.index(k),
None => match &self.null_val {
Some(val) => val,
None => panic!("Null value not set"),
None => panic!("The provided key is not present in map: None"),
},
}
}
Expand Down

0 comments on commit 35f6768

Please sign in to comment.