Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Fix missing fmt argument in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 3, 2021
1 parent 893129e commit bd3d0fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/resources.rs
Expand Up @@ -157,7 +157,10 @@ pub fn read_url(url: &Url, access: ResourceAccess) -> Result<Vec<u8>> {
Err(_) => Err(anyhow!("Cannot convert URL {} to file path", url)),
},
"http" | "https" => fetch_http(url),
_ => Err(anyhow!("Cannot read from URL {}, protocol not supported")),
_ => Err(anyhow!(
"Cannot read from URL {}, protocol not supported",
url,
)),
}
}

Expand Down

0 comments on commit bd3d0fa

Please sign in to comment.