diff --git a/apps/wpt/src/net_provider.rs b/apps/wpt/src/net_provider.rs index 72d04fe5..8c348b01 100644 --- a/apps/wpt/src/net_provider.rs +++ b/apps/wpt/src/net_provider.rs @@ -34,9 +34,8 @@ impl WptNetProvider { _ => { let relative_path = url.path().strip_prefix('/').unwrap(); let path = self.base_path.join(relative_path); - let file_content = std::fs::read(&path).map_err(|err| { + let file_content = std::fs::read(&path).inspect_err(|err| { eprintln!("Error loading {}: {}", path.display(), &err); - err })?; handler.bytes(Bytes::from(file_content), callback); }