mirror of
https://github.com/tihmstar/futurerestore.git
synced 2024-12-22 17:35:29 +00:00
added error handling when loading shsh files fails
This commit is contained in:
parent
c119b17543
commit
45058a2e2c
|
@ -274,6 +274,9 @@ void futurerestore::loadAPTickets(const vector<const char *> &apticketPaths){
|
||||||
uint64_t im4msize=0;
|
uint64_t im4msize=0;
|
||||||
plist_get_data_val(ticket, &im4m, &im4msize);
|
plist_get_data_val(ticket, &im4m, &im4msize);
|
||||||
|
|
||||||
|
if (!im4msize)
|
||||||
|
reterror(-38, "Error: failed to load shsh file %s\n",apticketPath);
|
||||||
|
|
||||||
_im4ms.push_back(im4m);
|
_im4ms.push_back(im4m);
|
||||||
_aptickets.push_back(apticket);
|
_aptickets.push_back(apticket);
|
||||||
printf("reading ticket %s done\n",apticketPath);
|
printf("reading ticket %s done\n",apticketPath);
|
||||||
|
|
Loading…
Reference in a new issue