17,101
edits
(_getDungeonRewards: Fix asList parameter handling) |
(Use printError function) |
||
Line 122: | Line 122: | ||
local area = Areas.getArea(areaName) | local area = Areas.getArea(areaName) | ||
if area == nil then | if area == nil then | ||
return | return Shared.printError('Could not find an area named "' .. areaName .. '"') | ||
end | end | ||
Line 128: | Line 128: | ||
return p._getDungeonRewards(area, asList) | return p._getDungeonRewards(area, asList) | ||
else | else | ||
return " | return Shared.printError('"' .. areaName .. '" is not a dungeon') | ||
end | end | ||
end | end |