ruby-changes:23640
From: kosaki <ko1@a...>
Date: Fri, 18 May 2012 16:06:45 +0900 (JST)
Subject: [ruby-changes:23640] kosaki:r35691 (trunk): * ext/zlib/extconf.rb: Use an exception instaed of bare puts.
kosaki 2012-05-18 16:02:56 +0900 (Fri, 18 May 2012) New Revision: 35691 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35691 Log: * ext/zlib/extconf.rb: Use an exception instaed of bare puts. Modified files: trunk/ChangeLog trunk/ext/zlib/extconf.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 35690) +++ ChangeLog (revision 35691) @@ -1,3 +1,7 @@ +Fri May 18 15:54:07 2012 KOSAKI Motohiro <kosaki.motohiro@g...> + + * ext/zlib/extconf.rb: Use an exception instaed of bare puts. + Fri May 18 15:53:05 2012 KOSAKI Motohiro <kosaki.motohiro@g...> * ext/psych/extconf.rb: Use an exception instaed of bare abort. Index: ext/zlib/extconf.rb =================================================================== --- ext/zlib/extconf.rb (revision 35690) +++ ext/zlib/extconf.rb (revision 35691) @@ -48,8 +48,7 @@ 'OS_UNKNOWN' => 'Unknown', } unless OS_NAMES.key? os_code then - puts "invalid OS_CODE `#{os_code}'" - exit + raise "invalid OS_CODE `#{os_code}'" end message "#{OS_NAMES[os_code]}\n" defines << "OS_CODE=#{os_code}" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/