* }}} */ * error operations {{{ */
(n int, message string)
| 242 | /* error operations {{{ */ |
| 243 | |
| 244 | func (ls *LState) ArgError(n int, message string) { |
| 245 | ls.RaiseError("bad argument #%v to %v (%v)", n, ls.rawFrameFuncName(ls.currentFrame), message) |
| 246 | } |
| 247 | |
| 248 | func (ls *LState) TypeError(n int, typ LValueType) { |
| 249 | ls.RaiseError("bad argument #%v to %v (%v expected, got %v)", n, ls.rawFrameFuncName(ls.currentFrame), typ.String(), ls.Get(n).Type().String()) |
no test coverage detected