diff options
author | Alan Wu <alanwu@ruby-lang.org> | 2022-06-17 18:13:19 -0400 |
---|---|---|
committer | Alan Wu <alanwu@ruby-lang.org> | 2022-06-17 18:13:19 -0400 |
commit | 4b7c4bb92e6c760c721fa27351f7845b39a18e37 (patch) | |
tree | 39f941e6e875ed46e31b35105a52b75f2ddf40ff | |
parent | 41a024f2b94cea802f7f6d8a1a9de9878aa20c7b (diff) | |
download | ruby-4b7c4bb92e6c760c721fa27351f7845b39a18e37.tar.gz |
tool/extlibs.rb: Use Exception#message for older rubies
This script runs with BASERUBY, which can be as old as 2.2.x.
Exception#full_message is new in 2.5.0.
I saw a NoMethodError on the AppVeyor CI where BASERUBY is 2.4.6:
https://ci.appveyor.com/project/ruby/ruby/builds/43870654/job/kae4uo2xbhuhqmdw#L121
-rwxr-xr-x | tool/extlibs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/extlibs.rb b/tool/extlibs.rb index 5d1a2db143..b482258a2c 100755 --- a/tool/extlibs.rb +++ b/tool/extlibs.rb @@ -227,7 +227,7 @@ class ExtLibs begin extracted = do_command(mode, dest, url, cache_dir, chksums) rescue => e - warn e.full_message + warn defined?(e.full_message) ? e.full_message : e.message success = false end url = chksums = nil |