fine tuning the error checks

This commit is contained in:
friendica 2013-08-05 20:46:25 -07:00
parent 790c6507d5
commit d467544bb7

View File

@ -50,6 +50,11 @@ function poco_load($xchan = '',$url = null) {
$s = z_fetch_url($url);
if(! $s['success']) {
if($s['return_code'] == 401)
logger('poco_load: protected');
elseif($s['return_code'] == 404)
logger('poco_load: nothing found');
else
logger('poco_load: returns ' . print_r($s,true));
return;
}