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 20fed59a Don't ignore missing CI file
20fed59a is described below

commit 20fed59ac5d6dc6b761d78bd34a8376e477e3782
Author: Sebb <[email protected]>
AuthorDate: Tue Jul 23 12:09:48 2024 +0100

    Don't ignore missing CI file
    
    (looks like this behaviour was once necessary for testing)
---
 lib/whimsy/asf/committee.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/committee.rb b/lib/whimsy/asf/committee.rb
index dfa80486..6d193fc9 100644
--- a/lib/whimsy/asf/committee.rb
+++ b/lib/whimsy/asf/committee.rb
@@ -164,9 +164,9 @@ module ASF
         @nonpmcs, @officers, @committee_info = 
parse_committee_info_nocache(contents)
       else
         board = ASF::SVN.find('board')
-        return unless board
+        raise ArgumentError.new("Could not find 'board' checkout") unless board
         file = File.join(board, 'committee-info.txt')
-        return unless File.exist? file
+        raise ArgumentError.new("Could not find #{file}") unless File.exist? 
file
 
         if @committee_mtime and File.mtime(file) <= @committee_mtime
           return @committee_info if @committee_info

Reply via email to