err.lua@5700ebe9277b
err.lua
Fri, 24 Jan 2025 13:27:45 +0100
- author
- Tuomo Valkonen <tuomov@iki.fi>
- date
- Fri, 24 Jan 2025 13:27:45 +0100
- changeset 44
- 5700ebe9277b
- parent 7
-
038275cd92ed
- permissions
- -rw-r--r--
Fix directory creation, as lfs doesn't do all leaves like the old approach.
--@module err
local err={}
function err.file_pos(f, pos, e)
error(string.format("%s:%d: %s", f, pos, e))
end
function err.file(f, e)
error(string.format("%s %s", f, e))
end
return err