From 3a0bc67d1be20bfe1f856b5c7fbeaffbf2bc9887 Mon Sep 17 00:00:00 2001 From: Andrew Ward Date: Tue, 12 Nov 2013 08:51:55 +0000 Subject: [PATCH] Add another check to awards.tbv --- api.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index d6d1d37..3214cb0 100644 --- a/api.lua +++ b/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