Comparison

plugins/mod_http.lua @ 4720:fddc2797a96a

mod_http: Link to docs on routes in error message
author Matthew Wild <mwild1@gmail.com>
date Fri, 27 Apr 2012 18:36:27 +0100
parent 4717:3c0321e3fa76
child 4721:1c6c4c53f08a
comparison
equal deleted inserted replaced
4719:2087d42f1e77 4720:fddc2797a96a
65 module:hook_object_event(server, event_name, handler); 65 module:hook_object_event(server, event_name, handler);
66 else 66 else
67 module:log("warn", "App %s added handler twice for '%s', ignoring", app_name, event_name); 67 module:log("warn", "App %s added handler twice for '%s', ignoring", app_name, event_name);
68 end 68 end
69 else 69 else
70 module:log("error", "Invalid route in %s: %q", app_name, key); 70 module:log("error", "Invalid route in %s, %q. See http://prosody.im/doc/developers/http#routes", app_name, key);
71 end 71 end
72 end 72 end
73 end 73 end
74 74
75 local function http_app_removed(event) 75 local function http_app_removed(event)