summaryrefslogtreecommitdiff
path: root/src/api/server_server.rs
diff options
context:
space:
mode:
authorTimo Kösters <timo@koesters.xyz>2022-10-15 00:28:43 +0200
committerTimo Kösters <timo@koesters.xyz>2022-10-15 00:28:43 +0200
commit3a45628e1d0d8fe4b9b6227ba26e448879ce03f0 (patch)
treec60ab0e7987016183e77f6256fe7f1ce96e84e5b /src/api/server_server.rs
parentc948324cf25d46754a4d4c0877119eec3e4886a1 (diff)
downloadconduit-3a45628e1d0d8fe4b9b6227ba26e448879ce03f0.zip
fix: send unrecognized error on wrong http methods
Diffstat (limited to 'src/api/server_server.rs')
-rw-r--r--src/api/server_server.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/api/server_server.rs b/src/api/server_server.rs
index 0064a86..320e396 100644
--- a/src/api/server_server.rs
+++ b/src/api/server_server.rs
@@ -305,9 +305,12 @@ where
}
}
Err(e) => {
- warn!("Could not send request to {} at {}: {}", destination, actual_destination_str, e);
+ warn!(
+ "Could not send request to {} at {}: {}",
+ destination, actual_destination_str, e
+ );
Err(e.into())
- },
+ }
}
}