Skip to content

Commit 233a558

Browse files
Fix incorrect error message capitalization
1 parent de404a7 commit 233a558

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bundler/lib/bundler/definition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def lockfile_changes_summary(update_refused_reason)
533533

534534
return unless added.any? || deleted.any? || changed.any? || resolve_needed?
535535

536-
msg = String.new("#{change_reason.capitalize.strip}, but ")
536+
msg = String.new("#{change_reason[0].upcase}#{change_reason[1..-1].strip}, but ")
537537
msg << "the lockfile " unless msg.start_with?("Your lockfile")
538538
msg << "can't be updated because #{update_refused_reason}"
539539
msg << "\n\nYou have added to the Gemfile:\n" << added.join("\n") if added.any?

bundler/spec/commands/update_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@
18091809
system_gems "bundler-9.9.9", path: local_gem_path
18101810

18111811
bundle "update --bundler=9.9.9", env: { "BUNDLE_FROZEN" => "true" }, raise_on_error: false
1812-
expect(err).to include("An update to the version of bundler itself was requested, but the lockfile can't be updated because frozen mode is set")
1812+
expect(err).to include("An update to the version of Bundler itself was requested, but the lockfile can't be updated because frozen mode is set")
18131813
end
18141814
end
18151815

bundler/spec/lock/lockfile_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@
16381638
G
16391639

16401640
expect(err).to eq <<~L.strip
1641-
Your lockfile is missing a checksums entry for \"myrack_middleware\", but can't be updated because frozen mode is set
1641+
Your lockfile is missing a CHECKSUMS entry for \"myrack_middleware\", but can't be updated because frozen mode is set
16421642
16431643
Run `bundle install` elsewhere and add the updated Gemfile.lock to version control.
16441644
L

0 commit comments

Comments
 (0)