Module:Loop: Difference between revisions
add error handling |
turns out you cant just randomly copy paste things and expect them to work |
||
| Line 36: | Line 36: | ||
function p._error( error_str ) | function p._error( error_str ) | ||
local frame = mw.getCurrentFrame() | local frame = mw.getCurrentFrame() | ||
local error_str = '<strong class="error">Loop Module Error: ' .. error_str .. '</strong>' | local error_str = '<strong class="error">Loop Module Error: ' .. error_str .. '</strong>' | ||
return error_str | return error_str | ||
end | end | ||
return p | return p | ||