diff options
author | Andrew Ward <anjayward@gmail.com> | 2013-11-07 09:05:24 +0000 |
---|---|---|
committer | Andrew Ward <anjayward@gmail.com> | 2013-11-07 09:05:24 +0000 |
commit | 9117031f2a247c442bc3a091e2b71edb5bdad42f (patch) | |
tree | 2c889efdaba5192a7ab9bea643b74b4cd861e662 | |
parent | b555a598014b5086a3ea28a3d0baf1a5f59650d6 (diff) |
Add print
-rw-r--r-- | api.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |