summaryrefslogtreecommitdiffstats
path: root/sentry.pl
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-21 09:58:11 +0200
committerByron Jones <glob@mozilla.com>2015-07-21 09:58:11 +0200
commit19cfefee5bd177bff80095db9d4006293e70301c (patch)
treeb0ae1aebc33625fa70af804afe2575a529d4f8d0 /sentry.pl
parentec9b5fd81dc74c7f69d221fa529be1c2543a12a0 (diff)
downloadbugzilla-19cfefee5bd177bff80095db9d4006293e70301c.tar.gz
bugzilla-19cfefee5bd177bff80095db9d4006293e70301c.tar.xz
Bug 1185852 - sentry.pl should build lazily build the head
Diffstat (limited to 'sentry.pl')
-rwxr-xr-xsentry.pl11
1 files changed, 6 insertions, 5 deletions
diff --git a/sentry.pl b/sentry.pl
index 3dbc6f489..f5c05f613 100755
--- a/sentry.pl
+++ b/sentry.pl
@@ -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;