📝 doc: improve error message

main
_ 2023-09-30 10:09:37 -05:00
parent ae858ebe70
commit be9cd1e5ac
1 changed files with 1 additions and 0 deletions

View File

@ -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"),
};