mirror of https://github.com/Hilbis/Hilbish
fix(commands/doc): get proper doc/subdoc when printing not found
parent
b594c4c30b
commit
40c8593abd
|
@ -40,7 +40,7 @@ Available sections: ]] .. table.concat(modules, ', ')
|
||||||
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
|
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
|
||||||
end
|
end
|
||||||
if not f then
|
if not f then
|
||||||
print('No documentation found for ' .. mod .. '.')
|
print('No documentation found for ' .. args[#args] .. '.')
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue