[sentry] "use of uninitialized value" warning in Template/Provider.pm

NEW
Unassigned

Status

()

bugzilla.mozilla.org
General
5 years ago
4 years ago

People

(Reporter: glob, Unassigned)

Tracking

Production
x86
Mac OS X

Details

(URL)

(Reporter)

Description

5 years ago
Use of uninitialized value $compiled in concatenation (.) or string at /usr/lib64/perl5/Template/Provider.pm line 572.

this is a weird one.  the code in question is the return statement of:

sub _load_compiled {
    my ($self, $file) = @_;
    my $compiled;
    # load compiled template via require();  we zap any
    # %INC entry to ensure it is reloaded (we don't
    # want 1 returned by require() to say it's in memory)
    delete $INC{ $file };
    eval { $compiled = require $file; };
    return $@
        ? $self->error("compiled template $compiled: $@")
        : $compiled;
}

the error which it throws, "compiled template :" is also visible in sentry.
You need to log in before you can comment on or make changes to this bug.