Module:Convert: Difference between revisions

Content deleted Content added
try this
try this
Line 189:
end
local out_unit_table = units:lookup(parms.out_unit)
if t1in_unit_table[units.utype] ~= t2out_unit_table[units.utype] then
local msg = 'Cannot convert %s to %s'
error(msg:format(t1[units.utype], t2[units.utype]))