mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix last commit.
This commit is contained in:
parent
0971460e31
commit
1cffd5b4f0
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ class Gem::Installer
|
||||||
def run_pre_install_hooks # :nodoc:
|
def run_pre_install_hooks # :nodoc:
|
||||||
Gem.pre_install_hooks.each do |hook|
|
Gem.pre_install_hooks.each do |hook|
|
||||||
if hook.call(self) == false
|
if hook.call(self) == false
|
||||||
location = " at #{$1}" if hook.inspect =~ /@(.*:\d+)/
|
location = " at #{$1}" if hook.inspect =~ / (.*:\d+)/
|
||||||
|
|
||||||
message = "pre-install hook#{location} failed for #{spec.full_name}"
|
message = "pre-install hook#{location} failed for #{spec.full_name}"
|
||||||
raise Gem::InstallError, message
|
raise Gem::InstallError, message
|
||||||
|
|
Loading…
Add table
Reference in a new issue