BadURL -> BadUrl
This commit is contained in:
parent
0d5e889783
commit
ffccb9bd98
|
@ -47,7 +47,7 @@ pub enum Error {
|
||||||
Attic(#[from] attic::AtticError),
|
Attic(#[from] attic::AtticError),
|
||||||
|
|
||||||
#[error("Bad URL")]
|
#[error("Bad URL")]
|
||||||
BadURL(reqwest::Url),
|
BadUrl(reqwest::Url),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IntoResponse for Error {
|
impl IntoResponse for Error {
|
||||||
|
|
|
@ -53,7 +53,7 @@ pub async fn init_cache(
|
||||||
|
|
||||||
let flakehub_cache_server_hostname = flakehub_cache_server
|
let flakehub_cache_server_hostname = flakehub_cache_server
|
||||||
.host()
|
.host()
|
||||||
.ok_or_else(|| Error::BadURL(flakehub_cache_server.to_owned()))?
|
.ok_or_else(|| Error::BadUrl(flakehub_cache_server.to_owned()))?
|
||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
// Append an entry for the FlakeHub cache server to netrc.
|
// Append an entry for the FlakeHub cache server to netrc.
|
||||||
|
|
Loading…
Reference in a new issue