diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-27 21:44:48 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-27 21:44:48 +0100 |
commit | 32ef47a1ec3fc4da73408cf0d348581b219f72ee (patch) | |
tree | 632af02bcaa1fb9818cc6db9918b6d64247b4ad3 /service | |
parent | 4831e4f754ef01442988f077d348c8a905ed1bf9 (diff) |
add last feed update error to message
Diffstat (limited to 'service')
-rw-r--r-- | service/feedservice.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/feedservice.php b/service/feedservice.php index f3c64373d..a6ebc27cb 100644 --- a/service/feedservice.php +++ b/service/feedservice.php @@ -267,11 +267,13 @@ class FeedService extends Service { // mark feed as successfully updated $existingFeed->setUpdateErrorCount(0); + $existingFeed->setLastUpdateError(''); } catch(FetcherException $ex){ $existingFeed->setUpdateErrorCount( $existingFeed->getUpdateErrorCount()+1 ); + $existingFeed->setLastUpdateError($ex->getMessage()); } $this->feedMapper->update($existingFeed); |