Skip to content

Commit 1308c19

Browse files
committed
tmp
1 parent eaea6f6 commit 1308c19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/error-handling/src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ fn hello_not_found(req: &Request<'_>) -> content::RawHtml<String> {
5757
// NOTE: right now, the error must be the first parameter, and all three params must
5858
// be present. I'm thinking about adding a param to the macro to indicate which (and whether)
5959
// param is a downcast error.
60-
#[catch(422)]
60+
61+
// `error` and `status` type. All other params must be `FromRequest`?
62+
#[catch(422, error = "<e>" /*, status = "<_s>"*/)]
6163
fn param_error(e: &IntErr, _s: Status, req: &Request<'_>) -> content::RawHtml<String> {
6264
content::RawHtml(format!("\
6365
<p>Sorry, but '{}' is not a valid path!</p>\

0 commit comments

Comments
 (0)