diff options
author | Nikias Bassen | 2022-06-28 12:10:06 +0200 |
---|---|---|
committer | Nikias Bassen | 2022-06-28 12:10:06 +0200 |
commit | 7d622d916be16f2df5a72bf53a42f3a326bbfaa4 (patch) | |
tree | 1ddc0c5274126db3489b1862570c8276bdfe4916 /src | |
parent | 6bc672c4dc56f8b741e4357c70eb17670121d5a9 (diff) | |
download | idevicerestore-7d622d916be16f2df5a72bf53a42f3a326bbfaa4.tar.gz idevicerestore-7d622d916be16f2df5a72bf53a42f3a326bbfaa4.tar.bz2 |
restore: Don't print 'Attempting to continue after critical error' warning when no error was detected
This only occurred when using --ignore-errors command line option.
Diffstat (limited to 'src')
-rw-r--r-- | src/restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c index 7f7e903..d51de03 100644 --- a/src/restore.c +++ b/src/restore.c @@ -4213,7 +4213,7 @@ 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) { + if (err != 0 && client->flags & FLAG_IGNORE_ERRORS) { error("WARNING: Attempting to continue after critical error, restore might fail...\n"); err = 0; } |