nicer expect message

This commit is contained in:
Andrew Dirksen 2018-11-21 18:26:03 -08:00
parent 7819950790
commit f1d64addf9
1 changed files with 3 additions and 1 deletions

View File

@ -1360,7 +1360,9 @@ impl ValueStack {
#[inline]
fn top(&self) -> &RuntimeValueInternal {
self.0.top().expect("pre-validated")
self.0
.top()
.expect("The stack is empty, this should never be possible due to the validation step")
}
#[inline]