Skip to content

Commit

Permalink
translate_exceptions: Parse errors out of fog responses
Browse files Browse the repository at this point in the history
  • Loading branch information
mansam committed Apr 11, 2018
1 parent 17b926b commit 1357c8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/manageiq/providers/openstack/manager_mixin.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module ManageIQ::Providers::Openstack::ManagerMixin
extend ActiveSupport::Concern
include ManageIQ::Providers::Openstack::HelperMethods

included do
after_save :stop_event_monitor_queue_on_change
Expand Down Expand Up @@ -49,7 +50,7 @@ def translate_exception(err)
when MiqException::MiqInvalidCredentialsError, MiqException::MiqHostError
err
else
MiqException::MiqEVMLoginError.new("Unexpected response returned from system: #{err.message}")
MiqException::MiqEVMLoginError.new("Unexpected response returned from system: #{parse_error_message_from_fog_response(err)}")
end
end
end
Expand Down

0 comments on commit 1357c8a

Please sign in to comment.