summaryrefslogtreecommitdiffstats
path: root/src/ideviceinstaller.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-08-20 08:13:21 +0200
committerGravatar Nikias Bassen2014-08-20 08:13:21 +0200
commitab04a35991dde200fa9bf5e7ddd458ea6f159b5e (patch)
treee4fba0e7939a59ef0472bbf7e0761fcf1334a49f /src/ideviceinstaller.c
parent11d0a9a9b11be238eb553be5973c8c3381f00867 (diff)
downloadideviceinstaller-ab04a35991dde200fa9bf5e7ddd458ea6f159b5e.tar.gz
ideviceinstaller-ab04a35991dde200fa9bf5e7ddd458ea6f159b5e.tar.bz2
Return non-zero exit status (128) when device error occurrs
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r--src/ideviceinstaller.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 37709d2..3bc7e74 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -1450,5 +1450,9 @@ leave_cleanup:
free(options);
}
+ if (err_occurred && !res) {
+ res = 128;
+ }
+
return res;
}