Skip to content

Commit

Permalink
[rubygems/rubygems] Show relative path to Gemfile in error message
Browse files Browse the repository at this point in the history
For conciseness and consistency with printing the relative path to the
lockfile just before.

rubygems/rubygems@74cf6aea7c
  • Loading branch information
deivid-rodriguez authored and hsbt committed Jun 14, 2023
1 parent e7749c4 commit c121681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/definition.rb
Expand Up @@ -372,7 +372,7 @@ def ensure_equivalent_gemfile_and_lockfile(explicit_flag = false)
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

Expand Down

0 comments on commit c121681

Please sign in to comment.