Skip to content

Commit

Permalink
Show more errors (#1967)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hocuri authored Oct 10, 2020
1 parent 48e1f53 commit bb50b9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/configure/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,14 +581,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")]
Expand Down
2 changes: 1 addition & 1 deletion src/configure/read_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub async fn read_url(context: &Context, url: &str) -> Result<String, Error> {
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))
}
Expand Down

0 comments on commit bb50b9a

Please sign in to comment.