summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/update.php b/update.php
index d3ccdc236..c6af40715 100755
--- a/update.php
+++ b/update.php
@@ -260,12 +260,17 @@
if (isset($options["update-feed"])) {
try {
- RSSUtils::update_rss_feed($options["update-feed"], true);
+
+ if (!RSSUtils::update_rss_feed($options["update-feed"], true))
+ exit(100);
+
} catch (PDOException $e) {
Debug::log(sprintf("Exception while updating feed %d: %s (%s:%d)",
$options["update-feed"], $e->getMessage(), $e->getFile(), $e->getLine()));
Logger::get()->log_error(E_USER_NOTICE, $e->getMessage(), $e->getFile(), $e->getLine(), $e->getTraceAsString());
+
+ exit(110);
}
}