Skip to content

Commit f135f93

Browse files
VinyLimaZsds
authored andcommitted
Add more information to the BundleCheck error msg
1 parent 7396a27 commit f135f93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/overcommit/hook/pre_commit/bundle_check.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def run
2222

2323
new_lockfile = File.read(LOCK_FILE) if File.exist?(LOCK_FILE)
2424
if previous_lockfile != new_lockfile
25-
return :fail, "#{LOCK_FILE} is not up-to-date -- run `#{command.join(' ')}`"
25+
return :fail, "#{LOCK_FILE} is not up-to-date -- run \
26+
`#{command.join(' ')}` or add the Gemfile and/or Gemfile.lock".squeeze
2627
end
2728

2829
:pass

0 commit comments

Comments
 (0)