diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-18 07:02:56 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-18 07:02:56 +0000 |
commit | 69305da74d9d6f3c0da668b9a95d872eee27e527 (patch) | |
tree | ec76e770cfae2a80142cabd5d4f1b8da3b2ffd21 | |
parent | 2e4645ca166e3c3fab5f85159fd0b06e868a45fa (diff) |
* ext/zlib/extconf.rb: Use an exception instaed of bare puts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/zlib/extconf.rb | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Fri May 18 15:54:07 2012 KOSAKI Motohiro <[email protected]> + + * ext/zlib/extconf.rb: Use an exception instaed of bare puts. + Fri May 18 15:53:05 2012 KOSAKI Motohiro <[email protected]> * ext/psych/extconf.rb: Use an exception instaed of bare abort. diff --git a/ext/zlib/extconf.rb b/ext/zlib/extconf.rb index d94fea743b..d710226f9c 100644 --- a/ext/zlib/extconf.rb +++ b/ext/zlib/extconf.rb @@ -48,8 +48,7 @@ if %w'z libz zlib1 zlib zdll'.find {|z| have_library(z, 'deflateReset')} and '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}" |