Skip Menu |

This queue is for tickets about the Log-LogLite CPAN distribution.

Report information
The Basics
Id: 16741
Status: new
Priority: 0/
Queue: Log-LogLite

People
Owner: Nobody in particular
Requestors: aa29 [...] mail.ru
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: IO::LockedFile object is not properly cheked after creation
IO::LockedFile checked to be open after creation: $self->{FH} = new IO::LockedFile({ lock => 0 }, ">>".$self->{FILE_PATH}); unless ($self->{FH}->opened) { ... } but if file doesn't exist, new IO::LockedFile returns undef, so it shows not informative error message: Can't call method "opened" on an undefined value I think, it should be checked like this: unless ($self->{FH} and $self->{FH}->opened) { ... } Thank you.