fix(commands/doc): get proper doc/subdoc when printing not found

docs-types
sammyette 2023-01-07 14:16:27 -04:00
parent b594c4c30b
commit 40c8593abd
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ Available sections: ]] .. table.concat(modules, ', ')
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
end
if not f then
print('No documentation found for ' .. mod .. '.')
print('No documentation found for ' .. args[#args] .. '.')
return
end
end