mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Instead of panicking on broken url, break from the loop and return.
This commit is contained in:
parent
d74e6330a4
commit
4e9bb15ba7
3 changed files with 11 additions and 3 deletions
|
@ -274,7 +274,9 @@ pub fn parse_html(document: JSRef<Document>,
|
|||
parser.parse_chunk(data);
|
||||
}
|
||||
ProgressMsg::Done(Err(err)) => {
|
||||
panic!("Failed to load page URL {}, error: {}", url.serialize(), err);
|
||||
debug!("Failed to load page URL {}, error: {}", url.serialize(), err);
|
||||
// TODO(Savago): we should send a notification to callers #5463.
|
||||
break;
|
||||
}
|
||||
ProgressMsg::Done(Ok(())) => break,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue