err.lua

changeset 7
038275cd92ed
parent 2
3975fa5ed630
equal deleted inserted replaced
6:219d7a7304f8 7:038275cd92ed
1 1
2 module("err", package.seeall) 2 --@module err
3 local err={}
3 4
4 function file_pos(f, pos, e) 5 function err.file_pos(f, pos, e)
5 error(string.format("%s:%d: %s", f, pos, e)) 6 error(string.format("%s:%d: %s", f, pos, e))
6 end 7 end
7 8
8 function file(f, e) 9 function err.file(f, e)
9 error(string.format("%s %s", f, e)) 10 error(string.format("%s %s", f, e))
10 end 11 end
11 12
13 return err

mercurial