diff options
author | Martin Szulecki | 2012-07-17 17:52:27 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 17:52:27 +0200 |
commit | 78517a7df8d15480cdac22682b8b071c511f19cc (patch) | |
tree | 73643b5b67d983a14056c95c2620cd34f1f3d8b0 /src/restore.c | |
parent | 0fbdab672aa7770447695bbf2e065210d78b141b (diff) | |
download | idevicerestore-78517a7df8d15480cdac22682b8b071c511f19cc.tar.gz idevicerestore-78517a7df8d15480cdac22682b8b071c511f19cc.tar.bz2 |
main: Return -2 error code if error might be fixed by running restore again
Diffstat (limited to 'src/restore.c')
-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 fc02a2c..f0e79c6 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1382,7 +1382,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit // open our connection to the device and verify we're in restore mode if (restore_open_with_timeout(client) < 0) { error("ERROR: Unable to open device in restore mode\n"); - return -1; + return -2; } info("Device has successfully entered restore mode\n"); |