spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.67.0.beta.20171128010003 vs spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.67.0
- old
+ new
@@ -1200,10 +1200,13 @@
sandboxAccount: nil
}
}.to_json
req.headers['Content-Type'] = 'application/json'
end
- parse_response(r, 'data')['user']
+ response_object = parse_response(r, 'data')
+ errors = response_object['sectionErrorKeys']
+ raise ITunesConnectError, errors.join(' ') unless errors.empty?
+ response_object['user']
end
def delete_sandbox_testers!(tester_class, emails)
url = tester_class.url[:delete]
request(:post) do |req|