This solves the use case of matching against errors throwing numbers instead of strings or tables. This case is unique because Lua automatically converts the number to a string, which then causes the string comparison to fail against the expected numeric value.
This solves the use case of matching against errors throwing numbers instead of strings or tables. This case is unique because Lua automatically converts the number to a string, which then causes the string comparison to fail against the expected numeric value.