err.lua

changeset 7
038275cd92ed
parent 2
3975fa5ed630
--- 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

mercurial