Explorar el Código

add warning to modpol.record

user hace 3 años
padre
commit
41274b2ff7
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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