diff options
author | Nikias Bassen | 2021-10-26 14:48:10 +0200 |
---|---|---|
committer | Nikias Bassen | 2021-10-26 14:48:10 +0200 |
commit | 17c80a650f963be7842ef15d83e93286a0129f7a (patch) | |
tree | 88b81448d0830cb5f82042aa42a03e6c96b65c65 /src/restore.c | |
parent | 968f9e1e24d05667a30fa2b51261d9032cd009ce (diff) | |
download | idevicerestore-17c80a650f963be7842ef15d83e93286a0129f7a.tar.gz idevicerestore-17c80a650f963be7842ef15d83e93286a0129f7a.tar.bz2 |
Add command line option to continue despite certain errors (e.g. baseband update failure)
Diffstat (limited to 'src/restore.c')
-rw-r--r-- | src/restore.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c index 47c93dd..d26f398 100644 --- a/src/restore.c +++ b/src/restore.c @@ -3692,6 +3692,10 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit // this is the restore process loop, it reads each message in from // restored and passes that data on to it's specific handler while (!(client->flags & FLAG_QUIT)) { + if (client->flags & FLAG_IGNORE_ERRORS) { + error("WARNING: Attempting to continue after critical error, restore might fail...\n"); + err = 0; + } // finally, if any of these message handlers returned -1 then we encountered // an unrecoverable error, so we need to bail. if (err < 0) { |