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:
parent
dc19ac56a9
commit
1de0aafa5b
9 changed files with 412 additions and 226 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue