diff options
author | friendica <info@friendica.com> | 2013-08-05 20:46:25 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-05 20:46:25 -0700 |
commit | d467544bb78bd14c89393179af5af26b339e1ecf (patch) | |
tree | e74e082885304351135a7fc1aaadf64686478c4e /include | |
parent | 790c6507d5d9d914f9e9e546256ee2741d6df400 (diff) | |
download | volse-hubzilla-d467544bb78bd14c89393179af5af26b339e1ecf.tar.gz volse-hubzilla-d467544bb78bd14c89393179af5af26b339e1ecf.tar.bz2 volse-hubzilla-d467544bb78bd14c89393179af5af26b339e1ecf.zip |
fine tuning the error checks
Diffstat (limited to 'include')
-rw-r--r-- | include/socgraph.php | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |