Skip to content
Snippets Groups Projects
Unverified Commit 77a87881 authored by Jonas Platte's avatar Jonas Platte
Browse files

Add message to unsupported HTTP method panic

parent 7bf538f5
No related branches found
No related tags found
No related merge requests found
...@@ -363,7 +363,7 @@ fn ruma_route<H, T>(self, handler: H) -> Self ...@@ -363,7 +363,7 @@ fn ruma_route<H, T>(self, handler: H) -> Self
Method::POST => MethodFilter::POST, Method::POST => MethodFilter::POST,
Method::PUT => MethodFilter::PUT, Method::PUT => MethodFilter::PUT,
Method::TRACE => MethodFilter::TRACE, Method::TRACE => MethodFilter::TRACE,
_ => panic!(""), m => panic!("Unsupported HTTP method: {:?}", m),
}; };
self.route(meta.path, on(method_filter, handler)) self.route(meta.path, on(method_filter, handler))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment