summaryrefslogtreecommitdiff
path: root/tex/context/base/luat-cod.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/luat-cod.lua')
-rw-r--r--tex/context/base/luat-cod.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tex/context/base/luat-cod.lua b/tex/context/base/luat-cod.lua
index 60a0b616f..a06c8c0bf 100644
--- a/tex/context/base/luat-cod.lua
+++ b/tex/context/base/luat-cod.lua
@@ -56,6 +56,9 @@ local finalizers = { }
function lua.registerfinalizer(f,comment)
if type(f) == "function" then
finalizers[#finalizers+1] = { action = f, comment = comment }
+ else
+ print(string.format("fatal error: invalid finalizer, action: %s",finalizer.comment or "unknown"))
+ os.exit()
end
end