spaceship/lib/spaceship/connect_api/models/app_screenshot.rb in fastlane-2.161.0 vs spaceship/lib/spaceship/connect_api/models/app_screenshot.rb in fastlane-2.162.0
- old
+ new
@@ -109,10 +109,12 @@
time = Time.now.to_i
timeout_minutes = (ENV["SPACESHIP_SCREENSHOT_UPLOAD_TIMEOUT"] || 20).to_i
loop do
- puts("Waiting for screenshot to appear before uploading...")
+ # This error handling needs to be revised since any error occured can reach here.
+ # It should handle errors based on what status code is.
+ puts("Waiting for screenshots to appear before uploading. This is unlikely to be recovered unless it's 503 error. error=\"#{error}\"")
sleep(30)
screenshots = Spaceship::ConnectAPI::AppScreenshotSet
.get(app_screenshot_set_id: app_screenshot_set_id)
.app_screenshots