mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
Instead of panicking on broken url, break from the loop and return.
This commit is contained in:
committed by
Ms2ger
parent
d74e6330a4
commit
4e9bb15ba7
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user