spaceship/lib/spaceship/connect_api/api_client.rb in fastlane-2.173.0 vs spaceship/lib/spaceship/connect_api/api_client.rb in fastlane-2.174.0

- old
+ new

@@ -245,11 +245,26 @@ # } # } # ] # } + # Detail is missing in this response making debugging super hard + # {"errors" => + # [ + # { + # "id"=>"80ea6cff-0043-4543-9cd1-3e26b0fce383", + # "status"=>"409", + # "code"=>"ENTITY_ERROR.RELATIONSHIP.INVALID", + # "title"=>"The provided entity includes a relationship with an invalid value", + # "source"=>{ + # "pointer"=>"/data/relationships/primarySubcategoryOne" + # } + # } + # ] + # } + return response.body['errors'].map do |error| - messages = [[error['title'], error['detail']].compact.join(" - ")] + messages = [[error['title'], error['detail'], error.dig("source", "pointer")].compact.join(" - ")] meta = error["meta"] || {} associated_errors = meta["associatedErrors"] || {} messages + associated_errors.values.flatten.map do |associated_error|