diff --git a/src/configure/mod.rs b/src/configure/mod.rs index 2187d2f122..dafa6c565b 100644 --- a/src/configure/mod.rs +++ b/src/configure/mod.rs @@ -574,14 +574,14 @@ pub enum Error { #[error("Invalid email address: {0:?}")] InvalidEmailAddress(String), - #[error("XML error at position {position}")] + #[error("XML error at position {position}: {error}")] InvalidXml { position: usize, #[source] error: quick_xml::Error, }, - #[error("Failed to get URL")] + #[error("Failed to get URL: {0}")] ReadUrlError(#[from] self::read_url::Error), #[error("Number of redirection is exceeded")] diff --git a/src/configure/read_url.rs b/src/configure/read_url.rs index 096b7b218e..dfd860c12e 100644 --- a/src/configure/read_url.rs +++ b/src/configure/read_url.rs @@ -12,7 +12,7 @@ pub async fn read_url(context: &Context, url: &str) -> Result { match surf::get(url).recv_string().await { Ok(res) => Ok(res), Err(err) => { - info!(context, "Can\'t read URL {}", url); + info!(context, "Can\'t read URL {}: {}", url, err); Err(Error::GetError(err)) }