diff options
| author | 2013-04-10 21:43:53 +0200 | |
|---|---|---|
| committer | 2013-04-10 21:43:53 +0200 | |
| commit | 42100a83223b93060eedc482eda94a890ee01e4a (patch) | |
| tree | cf31ac7e6ff53bcd37f83f707d99f633c736b29a /app/controllers/feedController.php | |
| parent | a88e61ca1ed1fa1ff145aa1feae10e9529b778bd (diff) | |
Fix issue #40 : test des erreurs SimplePie
Diffstat (limited to 'app/controllers/feedController.php')
| -rwxr-xr-x | app/controllers/feedController.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php index 812227f89..c205801af 100755 --- a/app/controllers/feedController.php +++ b/app/controllers/feedController.php @@ -58,6 +58,13 @@ class feedController extends ActionController { ); Session::_param ('notification', $notif); } + } catch (FeedException $e) { + Log::record ($e->getMessage (), Log::ERROR); + $notif = array ( + 'type' => 'bad', + 'content' => 'Un problème interne a été rencontré, le flux n\'a pas pu être ajouté' + ); + Session::_param ('notification', $notif); } catch (FileNotExistException $e) { Log::record ($e->getMessage (), Log::ERROR); // notif |
