From d467544bb78bd14c89393179af5af26b339e1ecf Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 5 Aug 2013 20:46:25 -0700 Subject: fine tuning the error checks --- include/socgraph.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/socgraph.php') diff --git a/include/socgraph.php b/include/socgraph.php index 73ece26ba..177ed0f3a 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -50,7 +50,12 @@ function poco_load($xchan = '',$url = null) { $s = z_fetch_url($url); if(! $s['success']) { - logger('poco_load: returns ' . print_r($s,true)); + 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; } -- cgit v1.2.3