summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/idevicerestore.c5
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;
}
}
}