diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index ab8a8956314..2f5591464cf 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -481,6 +481,9 @@ pub fn parse_html(url: Url,
debug!("received data");
parser.parse_chunk(data);
}
+ Done(Err(*)) => {
+ fail!("Failed to load page URL %s", url.to_str());
+ }
Done(*) => {
break;
}