summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-03 12:14:05 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-03 12:14:05 +0100
commit5bd34aacd134d3f41be0247d8eb1b8bd00e8a26e (patch)
tree1274307745973b9862ebc6da728b734a3563a307
parent0005967c7a573acdd63affa68e02e8072e7ed825 (diff)
downloadbundler-5bd34aacd134d3f41be0247d8eb1b8bd00e8a26e.tar.gz
Tweak
-rw-r--r--lib/bundler/friendly_errors.rb2
-rw-r--r--spec/bundler/friendly_errors_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb
index 8c22b54972..4664088084 100644
--- a/lib/bundler/friendly_errors.rb
+++ b/lib/bundler/friendly_errors.rb
@@ -23,7 +23,7 @@ module Bundler
Bundler.ui.error error.message
when LoadError
raise error unless error.message =~ /cannot load such file -- openssl|openssl.so|libcrypto.so/
- Bundler.ui.error "\nCould not load OpenSSL: #{error.class}: #{error}"
+ Bundler.ui.error "\nCould not load OpenSSL. #{error.class}: #{error}"
Bundler.ui.warn <<-WARN, :wrap => true
You must recompile Ruby with OpenSSL support or change the sources in your \
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL \
diff --git a/spec/bundler/friendly_errors_spec.rb b/spec/bundler/friendly_errors_spec.rb
index e9189b0514..e89fa01f45 100644
--- a/spec/bundler/friendly_errors_spec.rb
+++ b/spec/bundler/friendly_errors_spec.rb
@@ -116,7 +116,7 @@ RSpec.describe Bundler, "friendly errors" do
let(:error) { LoadError.new("cannot load such file -- openssl") }
it "Bundler.ui receive error" do
- expect(Bundler.ui).to receive(:error).with("\nCould not load OpenSSL.")
+ expect(Bundler.ui).to receive(:error).with("\nCould not load OpenSSL. LoadError: cannot load such file -- openssl")
Bundler::FriendlyErrors.log_error(error)
end