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 | ||
local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle()) | |||
title, talk_title = getTitle(titleText); | |||
if not title then | if not title then | ||
error(' | error('Invalid title ' .. titleText) | ||
end | end | ||