Module:Documentation: Difference between revisions

use the err function for all the errors
(finish moving end box code into sub-functions)
(use the err function for all the errors)
Line 508:
local success, docTitle = env:grab('docTitle')
if not success then
return err(docTitle) -- docTitle is an error message
end
-- Get the documentation content.
Line 534:
local success, docTitle = env:grab('docTitle')
if not success then
return err(docTitle) -- Error message
end
Line 596:
local success, printTitle = env:grab('printTitle')
if not success then
return err(printTitle) -- Error message
end
-- Make the print blurb.
Line 615:
local success, templateTitle = env:grab('templateTitle')
if not success then
return err(templateTitle) -- Error message.
end
-- Make the subpages blurb.
Line 636:
local success, docTitle = env:grab('docTitle')
if not success then
--return err(docTitle) is the-- errorError message.
return docTitle
end
-- Make the blurb.
Line 648 ⟶ 647:
local success, docTitle = env:grab('docTitle')
if not success then
--return err(docTitle) is the-- errorError message.
return docTitle
end
-- Make the blurb.