[Jifty-commit] r4226 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Oct 10 14:13:31 EDT 2007


Author: sunnavy
Date: Wed Oct 10 14:13:24 2007
New Revision: 4226

Modified:
   jifty/trunk/lib/Jifty/Handle.pm

Log:
no need to print STDERR, we can warn in $SIG{__WARN__}

Modified: jifty/trunk/lib/Jifty/Handle.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Handle.pm	(original)
+++ jifty/trunk/lib/Jifty/Handle.pm	Wed Oct 10 14:13:24 2007
@@ -215,7 +215,7 @@
         unlink($database);
     } else {
         local $SIG{__WARN__} =
-          sub { print STDERR $_[0] unless $_[0] =~ /exist|couldn't execute/i };
+          sub { warn $_[0] unless $_[0] =~ /exist|couldn't execute/i };
         $self->simple_query("DROP DATABASE $database");
     }
 }


More information about the Jifty-commit mailing list