diff options
author | Byron Jones <glob@mozilla.com> | 2015-07-21 09:58:11 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-07-21 09:58:11 +0200 |
commit | 19cfefee5bd177bff80095db9d4006293e70301c (patch) | |
tree | b0ae1aebc33625fa70af804afe2575a529d4f8d0 | |
parent | ec9b5fd81dc74c7f69d221fa529be1c2543a12a0 (diff) | |
download | bugzilla-19cfefee5bd177bff80095db9d4006293e70301c.tar.gz bugzilla-19cfefee5bd177bff80095db9d4006293e70301c.tar.xz |
Bug 1185852 - sentry.pl should build lazily build the head
-rwxr-xr-x | sentry.pl | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -18,14 +18,15 @@ use warnings; BEGIN { delete $ENV{SERVER_SOFTWARE}; -} -use FindBin qw($Bin); -use lib $Bin; -use lib "$Bin/lib"; + # exit early if there's nothing to send + use FindBin qw($Bin); + use lib $Bin, "$Bin/lib"; + use Bugzilla::Constants; + exit(0) unless glob(bz_locations()->{error_reports} . '/*.dump'); +} use Bugzilla; -use Bugzilla::Constants; use Fcntl qw(:flock); use File::Slurp qw(read_file); use HTTP::Request::Common; |