mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Allow resource load failures to send an error string which is reporting during task failure.
This commit is contained in:
parent
0bb838a58b
commit
376d5f4a08
6 changed files with 25 additions and 27 deletions
|
@ -510,8 +510,8 @@ pub fn parse_html(page: &Page,
|
|||
debug!("received data");
|
||||
parser.parse_chunk(data.as_slice());
|
||||
}
|
||||
Done(Err(..)) => {
|
||||
fail!("Failed to load page URL {:s}", url.to_str());
|
||||
Done(Err(err)) => {
|
||||
fail!("Failed to load page URL {:s}, error: {:s}", url.to_str(), err);
|
||||
}
|
||||
Done(..) => {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue