Sat, 01 Nov 2014 23:34:21 +0000
Lua 5.2 compatibility hack
| 2 | 1 | |
| 2 | module("err", package.seeall) | |
| 3 | ||
| 4 | function file_pos(f, pos, e) | |
| 5 | error(string.format("%s:%d: %s", f, pos, e)) | |
| 6 | end | |
| 7 | ||
| 8 | function file(f, e) | |
| 9 | error(string.format("%s %s", f, e)) | |
| 10 | end | |
| 11 |