Skip to content

Commit

Permalink
Be more precise about what is wrong when entering restore mode fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Sep 28, 2024
1 parent 27402ca commit 511261e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/idevicerestore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,11 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
if (client->mode != MODE_RESTORE || (client->flags & FLAG_QUIT)) {
mutex_unlock(&client->device_event_mutex);
error("ERROR: Device failed to enter restore mode.\n");
error("Please make sure that usbmuxd is running.\n");
if (client->mode == MODE_UNKNOWN) {
error("Make sure that usbmuxd is running.\n");
} else if (client->mode == MODE_RECOVERY) {
error("Device reconnected in recovery mode, most likely image personalization failed.\n");
}
return -1;
}
mutex_unlock(&client->device_event_mutex);
Expand Down

0 comments on commit 511261e

Please sign in to comment.