aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-27 06:24:17 +0000
committerFuwn <[email protected]>2023-04-27 06:24:17 +0000
commit875e201e94ab602eb47cebc3f17cd7ab4ead643c (patch)
tree68710bf3d77e4d3d2ac614fe054f8faf2d6df8a7 /README.md
parentdocs(rossweisse): add a readme (diff)
downloadwindmark-875e201e94ab602eb47cebc3f17cd7ab4ead643c.tar.xz
windmark-875e201e94ab602eb47cebc3f17cd7ab4ead643c.zip
fix(ci): fix tests and doc examples
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 509afa7..2ef6ca1 100644
--- a/README.md
+++ b/README.md
@@ -44,8 +44,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.set_private_key_file("windmark_private.pem")
.set_certificate_file("windmark_public.pem")
.mount("/", windmark::success!("Hello, World!"))
- .set_error_handler(
- windmark::permanent_failure!("This route does not exist!")
+ .set_error_handler(|_|
+ windmark::Response::permanent_failure("This route does not exist!")
)
.run()
.await