diff options
author | Kim Alvefur <zash@zash.se> | 2017-11-22 02:34:42 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-11-22 02:34:42 +0100 |
commit | 70fbc5ba5818eeb9c5e1357306eaae31030d99f6 (patch) | |
tree | af9b41d85cfe1416cf064d7ca35eac9b695e2099 /util/helpers.lua | |
parent | a7693939d4e64dba7b80d5705c25e53b4602a935 (diff) | |
download | prosody-70fbc5ba5818eeb9c5e1357306eaae31030d99f6.tar.gz prosody-70fbc5ba5818eeb9c5e1357306eaae31030d99f6.zip |
util.helpers: Handle missing priorities, happens due to wildcard magic in net.http.server (fixes #1044)
Diffstat (limited to 'util/helpers.lua')
-rw-r--r-- | util/helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |