err.lua

Sat, 01 Nov 2014 23:34:21 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sat, 01 Nov 2014 23:34:21 +0000
changeset 5
7667b101cb1e
parent 2
3975fa5ed630
child 7
038275cd92ed
permissions
-rwxr-xr-x

Lua 5.2 compatibility hack


module("err", package.seeall)

function file_pos(f, pos, e)
    error(string.format("%s:%d: %s", f, pos, e))
end

function file(f, e)
    error(string.format("%s %s", f, e))
end

mercurial