Module:PriceCalculator: Difference between revisions
No edit summary |
No edit summary |
||
Line 46: | Line 46: | ||
local price = tonumber(p._calculate(inputPrice, priceType)) | local price = tonumber(p._calculate(inputPrice, priceType)) | ||
if not price then | if not price then | ||
return "Error: invalid calculated price" | return "Error: invalid calculated price" .. tostring(price) | ||
end | end | ||