This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
improve open.pm layer class error message
authorAristotle Pagaltzis <pagaltzis@gmx.de>
Mon, 13 Sep 2010 14:58:24 +0000 (16:58 +0200)
committerRafael Garcia-Suarez <rgs@consttype.org>
Mon, 13 Sep 2010 14:59:08 +0000 (16:59 +0200)
lib/open.pm

index a6b4250..74119ca 100644 (file)
@@ -108,7 +108,7 @@ sub import {
            $in = $out = join(' ', @val);
        }
        else {
-           croak "Unknown PerlIO layer class '$type'";
+           croak "Unknown PerlIO layer class '$type' (need IN, OUT or IO)";
        }
     }
     ${^OPEN} = join("\0", $in, $out);