[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:100userInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"Unable to read HTML string from response",NSLocalizedDescriptionKey,err,NSUnderlyingErrorKey,nil]]];
return;
}elseif(!responseCSS){
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:100userInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"Unable to read HTML string from response",NSLocalizedDescriptionKey,nil]]];
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:100userInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"Unable to read HTML string from response",NSLocalizedDescriptionKey,nil]]];
return;
}
NSError*err=nil;
if(err){
[selffailWithError:err];
return;
}elseif(!responseHTML){
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:101userInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"Unable to convert response string to XHTML",NSLocalizedDescriptionKey,nil]]];
return;
}
// Only allow parsing of a single document at a time
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:101userInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"Error: unable to read response CSS from disk",NSLocalizedDescriptionKey,nil]]];
[selffailWithError:[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:101userInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"Error: unable to write response CSS to disk",NSLocalizedDescriptionKey,nil]]];