mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
c4adbd47f2
commit
de65ac7127
1 changed files with 3 additions and 0 deletions
|
@ -481,6 +481,9 @@ pub fn parse_html(url: Url,
|
||||||
debug!("received data");
|
debug!("received data");
|
||||||
parser.parse_chunk(data);
|
parser.parse_chunk(data);
|
||||||
}
|
}
|
||||||
|
Done(Err(*)) => {
|
||||||
|
fail!("Failed to load page URL %s", url.to_str());
|
||||||
|
}
|
||||||
Done(*) => {
|
Done(*) => {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue