mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-11-10 10:03:28 +01:00
Fix error message for RuStore when no APK found (#2615)
This commit is contained in:
@@ -86,7 +86,11 @@ class RuStore extends AppSource {
|
|||||||
postBody: {"appId": appDetails['appId'], "firstInstall": true},
|
postBody: {"appId": appDetails['appId'], "firstInstall": true},
|
||||||
);
|
);
|
||||||
var downloadDetails = (await decodeJsonBody(res1.bodyBytes))['body'];
|
var downloadDetails = (await decodeJsonBody(res1.bodyBytes))['body'];
|
||||||
if (res1.statusCode != 200 || downloadDetails['downloadUrls'][0]['url'] == null) {
|
try {
|
||||||
|
if (res1.statusCode != 200 || downloadDetails['downloadUrls'][0]['url'] == null) {
|
||||||
|
throw NoAPKError();
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
throw NoAPKError();
|
throw NoAPKError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user