浏览代码

add warning to modpol.record

user 3 年之前
父节点
当前提交
41274b2ff7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modpol/orgs/orgs.lua

+ 1 - 0
modpol/orgs/orgs.lua

@@ -132,6 +132,7 @@ modpol.record = function (org_id, msg, type)
       if org_ledger == nil then
 
          modpol.orgs [org_id]["ledger"] = { entry }
+         print("Warning: Org ".. org_id .. " did not have a ledger. This is an error.")
 
       else