diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-23 19:01:05 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-23 23:14:52 +0200 |
commit | b9f5e10ab4104d1c87d015b5bd899789a841bc7c (patch) | |
tree | 343cc093e6872b5bb3dad9019c4edce3a6880dad | |
parent | 8ae54c95713b2aefd9f33f199523d9e403503d04 (diff) | |
download | bundler-b9f5e10ab4104d1c87d015b5bd899789a841bc7c.tar.gz |
Improve error message
-rw-r--r-- | spec/support/helpers.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index a6541445a2..4852f1ab30 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -316,7 +316,11 @@ module Spec "#{gem_repo}/gems/#{g}.gem" end - raise "OMG `#{path}` does not exist!" unless File.exist?(path) + unless File.exist?(path) + msg = "OMG `#{path}` does not exist!" + msg += " Run `rake spec:deps` and try again" if g == :bundler + raise msg + end gem_command! :install, "--no-document --ignore-dependencies '#{path}'" end |