From be9cd1e5accd616c9413f0202bc985ebe37027a0 Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Sat, 30 Sep 2023 10:09:37 -0500 Subject: [PATCH] :pencil: doc: improve error message --- src/state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state.rs b/src/state.rs index c947318..c01390d 100644 --- a/src/state.rs +++ b/src/state.rs @@ -341,6 +341,7 @@ impl <'a> State <'a> { }, Instruction::GetField (a, b, c) => { let t = match self.reg (*b) { + Value::Nil => panic! ("R[B] must not be nil {}:{}", frame.block_idx, frame.program_counter), Value::Table (t) => t, _ => panic! ("R[B] must be a table"), };