diff options
author | Hans Hagen <pragma@wxs.nl> | 2009-10-28 19:27:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2009-10-28 19:27:00 +0100 |
commit | 17edf6ae96ce4e5e8eeaadc47bb3abc321fc2f6e (patch) | |
tree | 1f8e2a694ecbf03a6a534cd523fbbf647bf91055 /tex/context/base/mult-cld.lua | |
parent | 9da04bd6fa363277da00d82aa369e51a2e4202ae (diff) | |
download | context-17edf6ae96ce4e5e8eeaadc47bb3abc321fc2f6e.tar.gz |
beta 2009.10.28 19:27
Diffstat (limited to 'tex/context/base/mult-cld.lua')
-rw-r--r-- | tex/context/base/mult-cld.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tex/context/base/mult-cld.lua b/tex/context/base/mult-cld.lua index 024d196e4..8898ffc49 100644 --- a/tex/context/base/mult-cld.lua +++ b/tex/context/base/mult-cld.lua @@ -157,16 +157,18 @@ function context.runfile(filename) filename = resolvers.findtexfile(filename) or "" if filename ~= "" then local ok = dofile(filename) - if ok then + if type(ok) == "function" then if trace_cld then - commands.writestatus("cld","begin of file '%s'",filename) + commands.writestatus("cld","begin of file '%s' (funciton call)",filename) end ok() if trace_cld then - commands.writestatus("cld","end of file '%s'",filename) + commands.writestatus("cld","end of file '%s' (funciton call)",filename) end + elseif ok then + commands.writestatus("cld","file '%s' is processed and returns true",filename) else - commands.writestatus("cld","invalid file '%s'",filename) + commands.writestatus("cld","file '%s' is processed and returns nothing",filename) end else commands.writestatus("cld","unknown file '%s'",filename) |