Jump to content

Module:Navbar: Difference between revisions

less misleading error message
m>Jackmcbarn
(remove obnoxious pcall-and-rethrow behavior, now that real script errors include details)
m>Jackmcbarn
(less misleading error message)
Line 42: Line 42:
end
end
title, talk_title = getTitle(args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle()));
local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle())
title, talk_title = getTitle(titleText);


if not title then
if not title then
error('Page does not exist')
error('Invalid title ' .. titleText)
end
end


Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.