]> Sergey Matveev's repositories - public-inbox.git/commitdiff
wwwhighlight: read_in_full returns undef on errors
authorEric Wong <e@80x24.org>
Sun, 27 Jan 2019 05:09:22 +0000 (05:09 +0000)
committerEric Wong <e@80x24.org>
Sun, 27 Jan 2019 11:43:34 +0000 (11:43 +0000)
The return value of "print" is not undef for Perl IO::Handle.

lib/PublicInbox/WwwHighlight.pm

index 3d6ca03bdf5c3bc6e82ea134708779e2fe0fc6b8..09fc48aba0c1bce2f43a26e51c460dbe91483bb0 100644 (file)
@@ -52,6 +52,7 @@ sub read_in_full ($) {
                $off += $r;
        }
        $env->{'psgi.errors'}->print("input read error: $!\n");
+       undef;
 }
 
 # entry point for PSGI