Allow resource load failures to send an error string which is reporting during task failure.

This commit is contained in:
Glenn Watson 2014-05-07 14:32:22 +10:00
parent 0bb838a58b
commit 376d5f4a08
6 changed files with 25 additions and 27 deletions

View file

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