This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new ebbc8613 Show the full error if no Error: line
ebbc8613 is described below
commit ebbc86131fd9bd5b43364f8e897446e9c123480f
Author: Sebb <[email protected]>
AuthorDate: Tue Apr 9 15:04:12 2024 +0100
Show the full error if no Error: line
---
www/members/page-scanner.cgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/members/page-scanner.cgi b/www/members/page-scanner.cgi
index 052260db..7026717b 100755
--- a/www/members/page-scanner.cgi
+++ b/www/members/page-scanner.cgi
@@ -22,7 +22,7 @@ if qs =~ %r{^url=(https?://.+)}
if status.success?
puts out
else
- puts err.scan(/^Error:.+/) # Keep only the error line
+ puts err.scan(/^Error:.+/).first || err # Show only the Error line if
present
end
print "=====\n"
else