err.lua

Mon, 14 Sep 2009 00:16:13 +0300

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 14 Sep 2009 00:16:13 +0300
changeset 4
4cb0d1dbc65b
parent 2
3975fa5ed630
child 7
038275cd92ed
permissions
-rw-r--r--

fixes


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