A free, self-hostable news aggregator…
Log error if update.freshrss.org is unreachable
Marien Fressinaud098f5e6d747c
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.phpindex ec6778d51..4c1dd002c 100644--- a/app/Controllers/updateController.php+++ b/app/Controllers/updateController.php@@ -56,9 +56,14 @@ class FreshRSS_update_Controller extends Minz_ActionController {curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 2);$result = curl_exec($c);$c_status = curl_getinfo($c, CURLINFO_HTTP_CODE);+ $c_error = curl_error($c);curl_close($c);if ($c_status !== 200) {+ Minz_Log::error(+ 'Error during update (HTTP code ' . $c_status . '): ' . $c_error+ );+$this->view->message = array('status' => 'bad','title' => _t('damn'),