📝 doc: improve error message
parent
ae858ebe70
commit
be9cd1e5ac
|
@ -341,6 +341,7 @@ impl <'a> State <'a> {
|
||||||
},
|
},
|
||||||
Instruction::GetField (a, b, c) => {
|
Instruction::GetField (a, b, c) => {
|
||||||
let t = match self.reg (*b) {
|
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,
|
Value::Table (t) => t,
|
||||||
_ => panic! ("R[B] must be a table"),
|
_ => panic! ("R[B] must be a table"),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue