lib/rest/api/exceptions/unauthorized_exception.rb in rest-api-client-0.1.7 vs lib/rest/api/exceptions/unauthorized_exception.rb in rest-api-client-0.1.8
- old
+ new
@@ -3,9 +3,9 @@
attr_accessor :errors
def initialize(errors)
super 'You are not allowed to perform this action. Maybe you forgot to pass the authorization token?'
- @errors = errors
+ @errors = (errors && errors.is_a?(Array)) ? errors.uniq : errors
end
end
end
\ No newline at end of file