diff options
author | Nikias Bassen | 2019-10-20 03:38:16 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-10-20 03:38:16 +0200 |
commit | 0b4810fcdde022a507019c2d2023adebd0a54e01 (patch) | |
tree | ef4f86f522da8fc13f5edc791d88f5e3a5ca7ffc /src/idevicerestore.c | |
parent | d04ce021b928644cef3b27e025ffc8dae413cd71 (diff) | |
download | idevicerestore-0b4810fcdde022a507019c2d2023adebd0a54e01.tar.gz idevicerestore-0b4810fcdde022a507019c2d2023adebd0a54e01.tar.bz2 |
Error out if sending APTicket fails (older devices)
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 2e38933..0ee2bde 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1180,7 +1180,10 @@ int idevicerestore_start(struct idevicerestore_client_t* client) if (!client->image4supported) { /* send ApTicket */ if (recovery_send_ticket(client) < 0) { - error("WARNING: Unable to send APTicket\n"); + error("ERROR: Unable to send APTicket\n"); + if (delete_fs && filesystem) + unlink(filesystem); + return -2; } } } |