summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-09 06:44:20 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-09 06:44:20 +0000
commit390bbfed581a17fac72a9e029624fd667d81a0c8 (patch)
tree87f82dde592fe5c333438a93c869e46530e645d9 /ext/zlib
parent1048cf39d0a7fa38f3ced149ec7b141f5bb3f5c6 (diff)
merge revision(s) 35687:35691:
* ext/zlib/extconf.rb: Use an exception instaed of bare puts. * ext/psych/extconf.rb: Use an exception instaed of bare abort. * ext/fiddle/extconf.rb: Use an exception instaed of bare abort. * ext/readline/extconf.rb: Use an exception instead of bare exit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/extconf.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/zlib/extconf.rb b/ext/zlib/extconf.rb
index 499f55a046..da91046fdb 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}"