📝 doc: improve error message

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

View File

@ -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"),
Value::Table (t) => t, Value::Table (t) => t,
_ => panic! ("R[B] must be a table"), _ => panic! ("R[B] must be a table"),
}; };