Skip to content

Commit

Permalink
Even clearer beta blobs error message
Browse files Browse the repository at this point in the history
  • Loading branch information
airsquared committed Aug 19, 2023
1 parent a49a132 commit bab3820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,4 @@ if (hasProperty('buildScan')) {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
}
3 changes: 3 additions & 0 deletions src/main/java/airsquared/blobsaver/app/TSS.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ private List<Utils.IOSVersion> getIOSVersions() throws TSSException {
Stream<Utils.IOSVersion> signedBetas = getSignedBetas(deviceIdentifier);
return Stream.concat(signedFirmwares, signedBetas).toList();
} catch (Exception e) {
if (e.getMessage().startsWith("HTTP Response was (GET https://www.betahub.cn/api/apple/firmwares/")) {
throw new TSSException("There was an error retrieving beta versions; try without including beta versions.\n\nThis is a known issue. See issue #603 on GitHub for more information.", false, e);
}
throw new TSSException("There was an error retrieving beta versions; try without including beta versions. For more information, try again with the debug log open.", false, e);
}
} else { // all signed firmwares
Expand Down

0 comments on commit bab3820

Please sign in to comment.