We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaea6f6 commit 1308c19Copy full SHA for 1308c19
examples/error-handling/src/main.rs
@@ -57,7 +57,9 @@ fn hello_not_found(req: &Request<'_>) -> content::RawHtml<String> {
57
// NOTE: right now, the error must be the first parameter, and all three params must
58
// be present. I'm thinking about adding a param to the macro to indicate which (and whether)
59
// param is a downcast error.
60
-#[catch(422)]
+
61
+// `error` and `status` type. All other params must be `FromRequest`?
62
+#[catch(422, error = "<e>" /*, status = "<_s>"*/)]
63
fn param_error(e: &IntErr, _s: Status, req: &Request<'_>) -> content::RawHtml<String> {
64
content::RawHtml(format!("\
65
<p>Sorry, but '{}' is not a valid path!</p>\
0 commit comments