Fix issue #40 : test des erreurs SimplePie

This commit is contained in:
Marien Fressinaud committed 2013-04-10 21:43:53 +02:00
1 parent a88e61ca1e
commit 42100a8322
4 files changed
+19

No files matched your search

+7
View File
@@ -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