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

Fix error handling

parent 335b63d7
No related branches found
No related tags found
No related merge requests found
Pipeline #54644 failed
......@@ -108,7 +108,7 @@ module Passwordstate
if data
return data if res_obj.is_a? Net::HTTPSuccess
parsed = data&.first
data = data.first if data.is_a? Array
parsed = data.fetch('errors', []) if data.is_a?(Hash) && data.key?('errors')
parsed = [data]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment