From 9117031f2a247c442bc3a091e2b71edb5bdad42f Mon Sep 17 00:00:00 2001 From: Andrew Ward Date: Thu, 7 Nov 2013 09:05:24 +0000 Subject: [PATCH] Add print --- api.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 243f2a6..af8e991 100644 --- a/api.lua +++ b/api.lua @@ -40,7 +40,10 @@ function awards.tbv(tb,value,default) default = {} end if not tb or type(tb) ~= "table" then - print("Table is null, or not a table!") + if not value then + value = "[NULL]" + end + print("Table '"..value.."' is null, or not a table!") return end if not tb[value] then