File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -652,12 +652,20 @@ def build_bundler
652652 error_message = "Failed to install gems via Bundler."
653653 puts "Bundler Output: #{ bundler_output } "
654654 if bundler_output . match ( /An error occurred while installing sqlite3/ )
655- error_message += <<ERROR
655+ error_message += <<- ERROR
656656
657-
658- Detected sqlite3 gem which is not supported on Heroku.
657+ Detected sqlite3 gem which is not supported on Heroku:
659658https://devcenter.heroku.com/articles/sqlite3
660- ERROR
659+ ERROR
660+ end
661+
662+ if bundler_output . match ( /but your Gemfile specified/ )
663+ error_message += <<-ERROR
664+
665+ Detected a mismatch between your Ruby version installed and
666+ Ruby version specified in Gemfile or Gemfile.lock:
667+ https://devcenter.heroku.com/articles/ruby-versions#your-ruby-version-is-x-but-your-gemfile-specified-y
668+ ERROR
661669 end
662670
663671 error error_message
You can’t perform that action at this time.
0 commit comments