diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-08 12:57:24 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-08 15:36:46 +0200 |
commit | d8cf7d287359a71733a5fff5be60d53cbfcc02b0 (patch) | |
tree | 1e6885253cc9fbd029ba5803ea6b52b86045575c /Rakefile | |
parent | 89db9cd10f1a26236943e7809258eee78d9366c4 (diff) | |
download | bundler-d8cf7d287359a71733a5fff5be60d53cbfcc02b0.tar.gz |
Extract a common error message
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -265,18 +265,20 @@ begin require "automatiek" rescue LoadError + msg = "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" + namespace :vendor do desc "Vendor a specific version of molinillo" - task(:molinillo) { abort "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" } + task(:molinillo) { abort msg } desc "Vendor a specific version of fileutils" - task(:fileutils) { abort "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" } + task(:fileutils) { abort msg } desc "Vendor a specific version of thor" - task(:thor) { abort "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" } + task(:thor) { abort msg } desc "Vendor a specific version of net-http-persistent" - task(:"net-http-persistent") { abort "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" } + task(:"net-http-persistent") { abort msg } end else desc "Vendor a specific version of molinillo" |