projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1cb704
)
tweeper.php: check the return value of Tweeper::tweep()
author
Antonio Ospite <ao2@ao2.it>
Sun, 30 Oct 2016 09:28:41 +0000
(10:28 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Sun, 30 Oct 2016 09:28:41 +0000
(10:28 +0100)
If the tweep() method fails return 1 to the calling process so that it
can know that something failed.
tweeper.php
patch
|
blob
|
history
diff --git
a/tweeper.php
b/tweeper.php
index
b1809ed
..
0955a11
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-442,4
+442,8
@@
if (!isset($options['src_url'])) {
}
$tweeper = new Tweeper($options['generate_enclosure']);
-echo $tweeper->tweep($options['src_url']);
+$output = $tweeper->tweep($options['src_url']);
+if (is_null($output)) {
+ exit(1);
+}
+echo $output;