develooper Front page | perl.perl5.porters | Postings from September 2010

PerlIO Layers: (Somewhat) better error messages

From:
Max Maischein
Date:
September 22, 2010 12:24
Subject:
PerlIO Layers: (Somewhat) better error messages
Message ID:
4C9A57F6.5050406@corion.net
Hello p5p,

please find attached these two patches that I found laying around in my 
git repo. They change the somewhat uninformative error messages on IO 
layer mismatches to be a bit more specific.

I'm not sure whether my style of putting part of the error message into 
a sprintf parameter instead of directly into the (already long) string 
is acceptable.

All tests still pass, but I wonder how the t/porting/diag.t test is 
supposed to be run...

-max




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About