]> git.donarmstrong.com Git - debbugs.git/commitdiff
clear croak messages in Debbugs::Common
authorDon Armstrong <don@donarmstrong.com>
Mon, 19 Mar 2012 21:25:43 +0000 (14:25 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 19 Mar 2012 21:25:43 +0000 (14:25 -0700)
Debbugs/Common.pm

index 915fa859a7f8bd290f6037d3c8b17ab3fa757cf7..283f33ef58a6b517d62ebf362f0ccfa9fefc3b86 100644 (file)
@@ -869,6 +869,8 @@ sub cleanup_eval_fail {
     }
     # ditch the "at foo/bar/baz.pm line 5"
     $error =~ s/\sat\s\S+\sline\s\d+//;
+    # ditch croak messages
+    $error =~ s/^\s{3,}.+//g;
     # ditch trailing multiple periods in case there was a cascade of
     # die messages.
     $error =~ s/\.+$/\./;