err.lua

changeset 2
3975fa5ed630
child 7
038275cd92ed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/err.lua	Sat Sep 12 21:27:57 2009 +0300
@@ -0,0 +1,11 @@
+
+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