Don't call function when missing. Tweak needed for ldoc to build its own documentation files.

This commit is contained in:
Hisham Muhammad 2013-12-21 00:50:07 -02:00
parent 9b40e03e3a
commit 8b48e1d256
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ local function resolve_inline_references (ldoc, txt, item, plain)
local ref,err = markup.process_reference(qname)
if not ref then
err = err .. ' ' .. qname
if item then item:warning(err)
if item and item.warning then item:warning(err)
else
io.stderr:write('nofile error: ',err,'\n')
end