Skip to content

Commit 714a19f

Browse files
committed
Error out on failed attribute type checks
1 parent 8851d2e commit 714a19f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/resources/filters/modules/attribcheck.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,8 @@ local function warn_conversion (expected, actual, shift, extrainfo)
141141
dbginfostr = (dbginfo.name or '<no name>') .. ' in ' .. dbginfo.source
142142
.. ':' .. dbginfo.currentline
143143
end
144-
warn(actual .. ' instead of ' .. expected .. ': ' .. dbginfostr
144+
error(actual .. ' instead of ' .. expected .. ': ' .. dbginfostr
145145
.. (extrainfo and '\n' .. extrainfo or ''))
146-
return
147146
end
148147

149148
local ensure_type

0 commit comments

Comments
 (0)