diff options
author | Andrew Ward <anjayward@gmail.com> | 2013-11-12 08:51:55 +0000 |
---|---|---|
committer | Andrew Ward <anjayward@gmail.com> | 2013-11-12 08:51:55 +0000 |
commit | 3a0bc67d1be20bfe1f856b5c7fbeaffbf2bc9887 (patch) | |
tree | 8975924e7eeae7cc8db64fdb8e38dde6ae06a9bf | |
parent | b31b30a363140f6cb656482c780d158530d20ba0 (diff) |
Add another check to awards.tbv
-rw-r--r-- | api.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |