diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-06-16 13:49:09 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-06-16 13:49:09 +0100 |
commit | ada3644144e2890eca71e312cca659902facdd81 (patch) | |
tree | a884580ebaf2a56d6a2b9ac08edcf123fdb7bcb3 | |
parent | 5479bbe444a66219e0abe9c4ffabd17962e1597e (diff) |
Show error if cron-wrapper fails.
Allow fetch-comments-24hs to be executed directly.
-rwxr-xr-x | bin/cron-wrapper | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | bin/fetch-comments-24hs | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/bin/cron-wrapper b/bin/cron-wrapper index b93695cb0..127fd8d8a 100755 --- a/bin/cron-wrapper +++ b/bin/cron-wrapper @@ -5,5 +5,5 @@ BEGIN { # set all the paths to the perl code require "$FindBin::Bin/../setenv.pl"; } -exec { $ARGV[0] } @ARGV; +exec { $ARGV[0] } @ARGV or die $!; diff --git a/bin/fetch-comments-24hs b/bin/fetch-comments-24hs index 602383d40..602383d40 100644..100755 --- a/bin/fetch-comments-24hs +++ b/bin/fetch-comments-24hs |