whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Only dump header on error
Date Mon, 13 Nov 2017 10:29:52 GMT
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 d657220  Only dump header on error
d657220 is described below

commit d657220a28f24b650efa20640d2cbd550c6e453f
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Nov 13 10:28:46 2017 +0000

    Only dump header on error
---
 lib/whimsy/asf/mlist.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/mlist.rb b/lib/whimsy/asf/mlist.rb
index f8ea3ab..1e2641b 100644
--- a/lib/whimsy/asf/mlist.rb
+++ b/lib/whimsy/asf/mlist.rb
@@ -146,7 +146,8 @@ module ASF
           yield dom, list, stanza.scan(/^(.*@.*)/).flatten
         else
           # don't allow mismatches as that means the RE is wrong
-          raise ArgumentError.new("Unexpected section #{stanza}")
+          line=stanza[0..(stanza.index("\n")|| -1)]
+          raise ArgumentError.new("Unexpected section header #{line}")
         end
       end
     end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message