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: Better error message when name is nil
Date Thu, 05 Jul 2018 09:36:53 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 8989e52  Better error message when name is nil
8989e52 is described below

commit 8989e5288f2631243e25e643180c6a018a7f531c
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Jul 5 10:36:51 2018 +0100

    Better error message when name is nil
---
 lib/whimsy/asf/committee.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/whimsy/asf/committee.rb b/lib/whimsy/asf/committee.rb
index 95b6cd9..4427e6c 100644
--- a/lib/whimsy/asf/committee.rb
+++ b/lib/whimsy/asf/committee.rb
@@ -446,6 +446,7 @@ module ASF
     # a number of aliases for a given committee.  Will set display name
     # if the name being searched on contains an uppercase character.
     def self.find(name)
+      raise ArgumentError.new('name: must not be nil') unless name
       result = super(@@namemap.call(name.downcase))
       result.display_name = name if name =~ /[A-Z]/
       result


Mime
View raw message