From 69305da74d9d6f3c0da668b9a95d872eee27e527 Mon Sep 17 00:00:00 2001 From: kosaki Date: Fri, 18 May 2012 07:02:56 +0000 Subject: * 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 --- ext/zlib/extconf.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/zlib') 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}" -- cgit v1.2.3