forked from nalc/awards
Add another check to awards.tbv
This commit is contained in:
parent
b31b30a363
commit
3a0bc67d1b
8
api.lua
8
api.lua
|
@ -43,7 +43,13 @@ function awards.tbv(tb,value,default)
|
|||
if not value then
|
||||
value = "[NULL]"
|
||||
end
|
||||
print("Table '"..value.."' is null, or not a table! Dump: "..dump(tb))
|
||||
print("[ERROR] awards.tbv - table '"..value.."' is null, or not a table! Dump: "..dump(tb))
|
||||
return
|
||||
end
|
||||
if not value then
|
||||
print("[ERROR] awards.tbv was not used correctly!")
|
||||
print("Value: '"..dump(value).."'")
|
||||
print("Dump:"..dump(tb))
|
||||
return
|
||||
end
|
||||
if not tb[value] then
|
||||
|
|
Loading…
Reference in New Issue
Block a user