summaryrefslogtreecommitdiff
path: root/tex/context/base/mult-cld.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2009-10-28 19:27:00 +0100
committerHans Hagen <pragma@wxs.nl>2009-10-28 19:27:00 +0100
commit17edf6ae96ce4e5e8eeaadc47bb3abc321fc2f6e (patch)
tree1f8e2a694ecbf03a6a534cd523fbbf647bf91055 /tex/context/base/mult-cld.lua
parent9da04bd6fa363277da00d82aa369e51a2e4202ae (diff)
downloadcontext-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.lua10
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)