summaryrefslogtreecommitdiffstats
path: root/tools/ideviceprovision.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ideviceprovision.c')
-rw-r--r--tools/ideviceprovision.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c
index 82e929d..2e13e8b 100644
--- a/tools/ideviceprovision.c
+++ b/tools/ideviceprovision.c
@@ -244,6 +244,7 @@ static int profile_read_from_file(const char* path, unsigned char **profile_data
int main(int argc, char *argv[])
{
lockdownd_client_t client = NULL;
+ lockdownd_error_t ldret = LOCKDOWN_E_UNKNOWN_ERROR;
lockdownd_service_descriptor_t service = NULL;
idevice_t device = NULL;
idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
@@ -377,7 +378,8 @@ int main(int argc, char *argv[])
return -1;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &client, "ideviceprovision")) {
+ if (LOCKDOWN_E_SUCCESS != (ldret = lockdownd_client_new_with_handshake(device, &client, "ideviceprovision"))) {
+ fprintf(stderr, "ERROR: Could not connect to lockdownd, error code %d\n", ldret);
idevice_free(device);
return -1;
}