Skip to content

Commit c8cf973

Browse files
committed
fix using undefined value
1 parent 77fc70e commit c8cf973

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Thruk/Utils/Log.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ sub _debug_http_response {
150150
##############################################
151151
sub _strip_line {
152152
my($error, $all_lines) = @_;
153+
154+
return unless defined $error;
155+
153156
chomp($error);
154157

155158
my $re = qr/\ at\ .+?\ line\ \d+\.$/mx;

0 commit comments

Comments
 (0)