diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-06-08 21:24:00 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-06-15 07:01:22 +0900 |
| commit | c12168185e20b1b73a73d433425f2299221f2ddb (patch) | |
| tree | 222f46f5509407cb407befbb3d53a9e250618ae2 /lib | |
| parent | e7749c4dea1e580455264b6c4caa03d79524aef4 (diff) | |
[rubygems/rubygems] Show relative path to Gemfile in error message
For conciseness and consistency with printing the relative path to the
lockfile just before.
https://github.com/rubygems/rubygems/commit/74cf6aea7c
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bundler/definition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 3173359749..cbd9012e3a 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -372,7 +372,7 @@ module Bundler suggested_command = unless Bundler.settings.locations("frozen").keys.include?(:env) "bundle config set frozen false" end - msg << "If this is a development machine, remove the #{Bundler.default_gemfile} " \ + msg << "If this is a development machine, remove the #{Bundler.default_gemfile.relative_path_from(SharedHelpers.pwd)} " \ "freeze by running `#{suggested_command}`." if suggested_command end |
