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

PerlIO Layers: (Somewhat) better error messages

Max Maischein
September 22, 2010 12:24
PerlIO Layers: (Somewhat) better error messages
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About