fix error reporting in detoken.lua

This commit is contained in:
Tom van Dijck 2015-11-03 09:44:36 -08:00
parent d8ad705817
commit 22bccd9400

View File

@ -49,8 +49,7 @@
-- convert the token into a function to execute
local func, err = loadstring("return " .. token)
if not func then
print("load error:", err)
return nil, err
return nil, "load error: " .. err
end
-- give the function access to the project objects
@ -91,7 +90,7 @@
success, result = pcall(result, e)
if not success then
return nil, result
end
end
end
isAbs = path.isabsolute(result)
end