You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/07/05 09:36:53 UTC

[whimsy] branch master updated: Better error message when name is nil

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 <se...@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