dumpfile: no longer crashes on error

This commit is contained in:
UnShame 2018-02-21 18:51:51 +03:00
parent 512b69cb9e
commit a28a09f15c

View file

@ -155,7 +155,7 @@ VMFMod.dofile = function (self, script_path)
if not success then
self:error("(loadfile): %s", value.error)
print("\nTRACEBACK:\n\n" .. value.traceback .. "\nLOCALS:\n\n" .. value.locals)
print("\nTRACEBACK:\n\n" .. tostring(value.traceback) .. "\nLOCALS:\n\n" .. tostring(value.locals))
end
return value