Skip to content
Snippets Groups Projects
Verified Commit 6529c23f authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add 'error' key to error message lookup list

parent e004e19b
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ module Passwordstate ...@@ -10,7 +10,7 @@ module Passwordstate
@response = response @response = response
@errors = errors @errors = errors
super "Passwordstate responded with an error to the request:\n#{errors.map { |err| err['message'] || err['phrase'] }.join('; ')}" super "Passwordstate responded with an error to the request:\n#{errors.map { |err| err['message'] || err['phrase'] || err['error'] }.join('; ')}"
end end
def self.new_by_code(code, req, res, errors = []) def self.new_by_code(code, req, res, errors = [])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment