Open Bug 866816 Opened 11 years ago Updated 10 years ago

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

Categories

(bugzilla.mozilla.org :: General, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

()

People

(Reporter: glob, Unassigned)

References

()

Details

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.