From 9a0eb2419a81bd5a2221ad049acf7088693ef57d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 22 Nov 2017 02:34:42 +0100 Subject: util.helpers: Handle missing priorities, happens due to wildcard magic in net.http.server (fixes #1044) --- util/helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/helpers.lua') diff --git a/util/helpers.lua b/util/helpers.lua index eb38f653..02257ffa 100644 --- a/util/helpers.lua +++ b/util/helpers.lua @@ -50,7 +50,7 @@ local function show_events(events, specific_event) local handler_strings = {}; for i, handler in ipairs(handlers) do local upvals = debug.string_from_var_table(debug.get_upvalues_table(handler)); - handler_strings[i] = " "..priorities[handler]..": "..tostring(handler)..(upvals and ("\n "..upvals) or ""); + handler_strings[i] = " "..(priorities[handler] or "?")..": "..tostring(handler)..(upvals and ("\n "..upvals) or ""); end event_handler_arrays[event] = handler_strings; end -- cgit v1.2.3