diff --git a/backend/src/util/location.rs b/backend/src/util/location.rs index db97bd7..a7ae862 100644 --- a/backend/src/util/location.rs +++ b/backend/src/util/location.rs @@ -136,7 +136,16 @@ impl Locator { where for<'de> T: Deserialize<'de>, { - match self.client.get(url).send()?.json::() { + let mut result = match self.client.get(url).send() { + Ok(result) => result, + Err(error) => { + info!("Failed query {} ({:?})", url, error); + + return Err(error); + } + }; + + match result.json::() { Ok(result) => Ok(Some(result)), Err(err) => { debug!("JSON error for ip location: {:?}", err);