module Bundler::FriendlyErrors

def issues_url(exception)

def issues_url(exception)
  message = exception.message.lines.first.tr(":", " ").chomp
  message = message.split("-").first if exception.is_a?(Errno)
  "https://github.com/bundler/bundler/search?q=" \
    "#{CGI.escape(message)}&type=Issues"
end