Software /
code /
prosody
Comparison
plugins/mod_http.lua @ 11400:19a59cb7311e
mod_http: Improve message for missing 'route'
This was the late night early draft text, thought I had amended this but
apparently I forgot.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Feb 2021 16:07:41 +0100 |
parent | 11399:d5d895313be2 |
child | 11408:1b6298e7b550 |
comparison
equal
deleted
inserted
replaced
11399:d5d895313be2 | 11400:19a59cb7311e |
---|---|
160 | 160 |
161 local streaming = event.item.streaming_uploads; | 161 local streaming = event.item.streaming_uploads; |
162 | 162 |
163 if not event.item.route then | 163 if not event.item.route then |
164 -- TODO: Link to docs | 164 -- TODO: Link to docs |
165 module:log("error", "HTTP app %q provides no 'route', a typo or mistake?", app_name); | 165 module:log("error", "HTTP app %q provides no 'route', add one to handle HTTP requests", app_name); |
166 return; | 166 return; |
167 end | 167 end |
168 | 168 |
169 for key, handler in pairs(event.item.route) do | 169 for key, handler in pairs(event.item.route) do |
170 local event_name = get_http_event(host, app_path, key); | 170 local event_name = get_http_event(host, app_path, key); |