summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 17:52:27 +0200
committerGravatar Nikias Bassen2012-07-17 17:52:27 +0200
commit78517a7df8d15480cdac22682b8b071c511f19cc (patch)
tree73643b5b67d983a14056c95c2620cd34f1f3d8b0 /src/idevicerestore.c
parent0fbdab672aa7770447695bbf2e065210d78b141b (diff)
downloadidevicerestore-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/idevicerestore.c')
-rw-r--r--src/idevicerestore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 59d4a14..b53ebbd 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -373,7 +373,7 @@ int main(int argc, char* argv[]) {
if (client->mode->index == MODE_RESTORE) {
if (restore_reboot(client) < 0) {
error("ERROR: Unable to exit restore mode\n");
- return -1;
+ return -2;
}
// we need to refresh the current mode again
@@ -700,7 +700,7 @@ int main(int argc, char* argv[]) {
plist_free(client->tss);
if (filesystem)
unlink(filesystem);
- return -1;
+ return -2;
}
}
@@ -712,7 +712,7 @@ int main(int argc, char* argv[]) {
error("ERROR: Unable to send iBEC\n");
if (filesystem)
unlink(filesystem);
- return -1;
+ return -2;
}
recovery_client_free(client);
@@ -786,7 +786,7 @@ int main(int argc, char* argv[]) {
plist_free(client->tss);
if (filesystem)
unlink(filesystem);
- return -1;
+ return -2;
}
info("waiting for device...\n");