From 7d622d916be16f2df5a72bf53a42f3a326bbfaa4 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 28 Jun 2022 12:10:06 +0200 Subject: 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. --- src/restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.1-32-gdbae