Fail the script task when page URL load fails

It's confusing that specifying a nonexistent file on the command line just
gives me a blank page.  Until we have a real 404 page let's just crash.
This commit is contained in:
Keegan McAllister 2013-07-24 16:31:04 -07:00
parent c4adbd47f2
commit de65ac7127

View file

@ -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;
}