[Bps-public-commit] r14281 - sd/trunk/bin

jesse at bestpractical.com jesse at bestpractical.com
Fri Jul 18 15:23:21 EDT 2008


Author: jesse
Date: Fri Jul 18 15:23:04 2008
New Revision: 14281

Modified:
   sd/trunk/bin/sd

Log:
* smarted up sd's error truncator to not truncate intentional two-line errors

Modified: sd/trunk/bin/sd
==============================================================================
--- sd/trunk/bin/sd	(original)
+++ sd/trunk/bin/sd	Fri Jul 18 15:23:04 2008
@@ -13,8 +13,8 @@
 unless ($ENV{SD_VERBOSE_ERROR}) {
     $SIG{__DIE__} = sub {
         my $line = shift;
-        $line =~ s/\n.*//s;
-        die $line;
+        $line =~ s/\n.*//s if ($line =~ /at line/s);
+        die $line."\n";
     };
 }
 



More information about the Bps-public-commit mailing list