Skip to content

Commit

Permalink
Print out a more human readable error when selecting wrong security p…
Browse files Browse the repository at this point in the history
…rotocol

This change modifies the error message returned from nuage when selecting
the wrong security protocol. The old error message was: 'wrong status line:
"\x15\x03\x03\x00\x02\x02"' which was not informative to the end user.
  • Loading branch information
gasper-vrhovsek committed Nov 21, 2017
1 parent a1f64a1 commit 7e572a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/manageiq/providers/nuage/manager_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def translate_exception(err)
MiqException::MiqHostError.new("Socket error: #{err.message}")
when MiqException::MiqInvalidCredentialsError, MiqException::MiqHostError
err
when Net::HTTPBadResponse
Net::HTTPBadResponse.new "Login failed due to a bad security protocol, hostname or port."
else
MiqException::MiqEVMLoginError.new("Unexpected response returned from system: #{err.message}")
end
Expand Down

0 comments on commit 7e572a4

Please sign in to comment.