Skip to content
Snippets Groups Projects
Commit f9f2a59b authored by Evy Storozhenko's avatar Evy Storozhenko
Browse files

Merge branch 'fix_url_errors' into 'main'

fixed timeout urls

See merge request evysgarden/kurzlink!31
parents f7feb14a 83621729
No related branches found
No related tags found
No related merge requests found
......@@ -36,13 +36,13 @@ pub fn check_url(url: &AbsoluteUrl, timeout: u64) -> anyhow::Result<()> {
Ok(())
} else {
Err(ValidationError::HttpStatusError {
url: result.url().to_string(),
url: url.inner().clone(),
status: result.status(),
}
.into())
}
}
Err(err) => Err(err.into()),
Err(err) => Err(anyhow::Error::msg(err.to_string()))
}
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment