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

Added cancheck; candran.compile, .make and .preprocess returns nil, err instead of throwing an error; can and canc error output should now be similar to Lua

This commit is contained in:
Étienne Fildadut 2020-04-06 21:30:57 +02:00
parent dc19ac56a9
commit 1de0aafa5b
9 changed files with 412 additions and 226 deletions

View file

@ -15,7 +15,7 @@ local function test(name, candranCode, expectedResult, options)
options.chunkname = name
-- make code
local success, code = pcall(candran.make, candranCode, options)
local success, code = pcall(function() return assert(candran.make(candranCode, options)) end)
if not success then
self.result = "error"
self.message = "/!\\ error while making code:\n"..code