Skip to content

Commit

Permalink
Fixed error message and added Write.Inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKumaPants committed Apr 14, 2024
1 parent 22f8744 commit 27f2d2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/evaluate.lua
Expand Up @@ -69,7 +69,7 @@ evaluate.check_loot_conditions = function(item, loot_helpers, loot_conditions, s
if success and result then
preference = evaluate.convert_rule_preference(condition_item, loot_helpers, condition)
break
elseif not result then
elseif not success and result then
Write.Error(result)
end
end
Expand Down
6 changes: 6 additions & 0 deletions lib/Write.lua
@@ -1,6 +1,8 @@
--- @type Mq
local mq = require("mq")

local inspect = require("yalm.lib.inspect")

Write = { _version = "1.6" }

Write.usecolors = true
Expand Down Expand Up @@ -108,4 +110,8 @@ function Write.Help(message, ...)
Output("help", string.format(message, ...))
end

function Write.Inspect(object)
Output("debug", inspect(object))
end

return Write

0 comments on commit 27f2d2b

Please sign in to comment.