From f1d64addf9dd8324226031fded59d1a1a7491087 Mon Sep 17 00:00:00 2001 From: Andrew Dirksen Date: Wed, 21 Nov 2018 18:26:03 -0800 Subject: [PATCH] nicer expect message --- src/runner.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runner.rs b/src/runner.rs index 6933e66..5cd662b 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -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]