From 4de129bbae1a26b8ee62d7ec1f73d60e6cbcc530 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 13 Apr 2021 20:37:54 +0300 Subject: Add verbose error messages Not happy with the solution one bit but using error.rs at https://blog.logrocket.com/create-an-async-crud-web-service-in-rust-with-warp/ was not working Basically we just handcraft every single response on the spot, there is some repetition and it's ugly but need to move on --- src/custom_filters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/custom_filters.rs') diff --git a/src/custom_filters.rs b/src/custom_filters.rs index dfdae04..ae8a56c 100644 --- a/src/custom_filters.rs +++ b/src/custom_filters.rs @@ -28,7 +28,7 @@ pub fn transaction_json_body() -> impl Filter impl Filter + Clone { - warp::header::header::("Authorization") + warp::header::("Authorization") } /// Extracts an `Block` JSON body from the request -- cgit v1.2.3-70-g09d2