diff --git a/php/epntap.php b/php/epntap.php index 82b2fb0..98fb943 100644 --- a/php/epntap.php +++ b/php/epntap.php @@ -59,9 +59,12 @@ function getServices() { } } return $services; - } else if($i === count($registriesURL)-1) { - error_log("Can not access any of these services : " . implode(', ', $registriesURL) . "."); - return; + } else { + error_log('getServices error: ' . $services['error']); + if($i === count($registriesURL)-1) { + error_log("Can not access any of these registries : " . implode(', ', $registriesURL) . ", check the internet connexion."); + return; + } } } } @@ -122,7 +125,6 @@ function request($access_url, $query) { $url = $access_url . '/sync?' . $params . '&QUERY=' . urlencode(preg_replace('/\s+/', ' ', $query)); // remove also multiple whitespaces $votMgr->load($url); - $result = $votMgr->parseStream(); return $votMgr->getVotableError() ? array('error' => $votMgr->getVotableError()) : $result; } -- libgit2 0.21.2