Skip to content

Commit

Permalink
wasm: AssetReaderError, not AssetIoError
Browse files Browse the repository at this point in the history
  • Loading branch information
voidentente committed Nov 15, 2023
1 parent 63c0e58 commit 5634d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web_asset_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async fn get<'a>(uri: PathBuf) -> Result<Box<Reader<'a>>, AssetReaderError> {
// warn!("Failed to fetch asset {uri_str}: {err:?}");
}

let response = response.map_err(|_| AssetIoError::NotFound(uri))?;
let response = response.map_err(|_| AssetReaderError::NotFound(uri))?;

let data = JsFuture::from(response.array_buffer().unwrap())
.await
Expand Down

0 comments on commit 5634d82

Please sign in to comment.