summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 19:01:05 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 23:14:52 +0200
commitb9f5e10ab4104d1c87d015b5bd899789a841bc7c (patch)
tree343cc093e6872b5bb3dad9019c4edce3a6880dad
parent8ae54c95713b2aefd9f33f199523d9e403503d04 (diff)
downloadbundler-b9f5e10ab4104d1c87d015b5bd899789a841bc7c.tar.gz
Improve error message
-rw-r--r--spec/support/helpers.rb6
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