[NUUG fiksgatami] [patch] Add newline to RABX server error printing

Petter Reinholdtsen pere at hungry.com
Sat Jan 31 10:11:01 CET 2009


While trying to get the mapit service working, I tried to run it from
the command line, and discovered that the error message displayed was
lacking a trailing newline.  This patch solve that issue, making it
easier to read the error on the command line.

Index: perllib/RABX.pm
===================================================================
RCS file: /repos/mysociety/perllib/RABX.pm,v
retrieving revision 1.24
diff -u -3 -p -r1.24 RABX.pm
--- perllib/RABX.pm     26 Jan 2009 14:21:50 -0000      1.24
+++ perllib/RABX.pm     31 Jan 2009 09:08:15 -0000
@@ -632,7 +632,7 @@ sub dispatch (%) { # XXX should take str
           "Content-Length: ",  length($retstr), "\n";
     print "Cache-Control: max-age=$maxage\n" if ($maxage);
     print "\n",
-          $retstr;
+          "$retstr\n";
 }

 1;


More information about the fiksgatami mailing list