mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 09:59:29 +00:00
Handle static import errors in can
This commit is contained in:
parent
008e7732bc
commit
d4102f1af6
3 changed files with 97 additions and 81 deletions
|
|
@ -320,6 +320,7 @@ end
|
|||
--- Candran error message handler.
|
||||
-- Use it in xpcall to rewrite stacktraces to display Candran source file lines instead of compiled Lua lines.
|
||||
function candran.messageHandler(message, noTraceback)
|
||||
message = tostring(message)
|
||||
if not noTraceback and not message:match("\nstack traceback:\n") then
|
||||
message = debug.traceback(message, 2)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue