From 81caff44b0fcb72f063e412a87fa3a41a990ee8b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 1 Mar 2016 01:45:34 +0000 Subject: [PATCH] parse_debug --- bin/dbq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dbq b/bin/dbq index 01e0ebf4..7d3dc121 100755 --- a/bin/dbq +++ b/bin/dbq @@ -163,9 +163,9 @@ sub parse_debug { while (<>) { if (/DEBUG: /) { print STDERR $_ } - elsif ( /^(<\w+>)?(Parse error|Warning)/) { print STDERR html2txt($_) } - elsif ( /^
/) { print STDERR html_unescape($_) }
+    elsif ( /^
/) { print STDERR uc($1).': '.html2txt($_) }
     elsif ( /^(<\w+>)?Fatal error/ .. /^\s+thrown in/) { print STDERR html2txt($_) }
+    elsif ( /^(<\s*\w+\s*\/?>)?(Parse error|Fatal error|Warning|Notice|$)/) { print STDERR $_ if ($_=html2txt($_)) and $_ !~ /^\s*$/ }
     else { print $_ }
 
   }
-- 
2.47.3