1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-27 17:59:30 +00:00

Discard warnings from external files in cancheck

This commit is contained in:
Étienne Fildadut 2020-04-06 23:11:17 +02:00
parent 1de0aafa5b
commit 33ac4c5d7f
3 changed files with 96 additions and 44 deletions

View file

@ -32,7 +32,7 @@ if arg[#arg] == "-" then
elseif #args >= 1 then
local f, err = candran.loadfile(args[1], nil, args)
if not f then
print("can: "..err)
io.stderr:write("can: "..err.."\n")
os.exit(1)
else
f()