Hello,
I'm using this if loading failure is not fatal:
DoFile = function(fn)
return pcall(function() return dofile(fn) end)
end
DoFile(MyFile.lua) -- instead of 'dofile(MyFile.lua)'
You can play with handling error code
(http://www.lua.org/manual/5.1/manual.html#pdf-pcall):
Hello, Philipp!
If I load a lua file from a module using
\registerctxluafile{file}{1.001}
or
\ctxloadluafile{file}
How can I be sure the file was in fact loaded?
The related tracker output is quite comprehensive:
\enabletrackers[resolvers.locating]
\ctxloadluafile{sometest}
Hey André,
···date: 2012-12-12, Wednesday···from: Andre Caldas···
If I load a lua file from a module using
\registerctxluafile{file}{1.001}
or
\ctxloadluafile{file}
How can I be sure the file was in fact loaded?
The related tracker output is quite comprehensive: