diff -r 219d7a7304f8 -r 038275cd92ed err.lua --- a/err.lua Sun May 07 20:02:53 2017 +0100 +++ b/err.lua Tue Jan 16 16:39:48 2018 +0000 @@ -1,11 +1,13 @@ -module("err", package.seeall) +--@module err +local err={} -function file_pos(f, pos, e) +function err.file_pos(f, pos, e) error(string.format("%s:%d: %s", f, pos, e)) end -function file(f, e) +function err.file(f, e) error(string.format("%s %s", f, e)) end +return err