(message string)
| 38 | } |
| 39 | |
| 40 | func (l *State) runtimeError(message string) { |
| 41 | l.push(message) |
| 42 | if ci := l.callInfo; ci.isLua() { |
| 43 | line, source := l.currentLine(ci), l.prototype(ci).source |
| 44 | if source == "" { |
| 45 | source = "?" |
| 46 | } else { |
| 47 | source = chunkID(source) |
| 48 | } |
| 49 | l.push(fmt.Sprintf("%s:%d: %s", source, line, message)) |
| 50 | } |
| 51 | l.errorMessage() |
| 52 | } |
| 53 | |
| 54 | func (l *State) typeError(v value, operation string) { |
| 55 | typeName := l.valueToType(v).String() |
no test coverage detected