summaryrefslogtreecommitdiffstats
path: root/tools/idevicedate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicedate.c')
-rw-r--r--tools/idevicedate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/idevicedate.c b/tools/idevicedate.c
index e14d587..234a8fe 100644
--- a/tools/idevicedate.c
+++ b/tools/idevicedate.c
@@ -56,6 +56,7 @@ static void print_usage(int argc, char **argv)
int main(int argc, char *argv[])
{
lockdownd_client_t client = NULL;
+ lockdownd_error_t ldret = LOCKDOWN_E_UNKNOWN_ERROR;
idevice_t device = NULL;
idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
int i;
@@ -137,7 +138,8 @@ int main(int argc, char *argv[])
return -1;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &client, "idevicedate")) {
+ if (LOCKDOWN_E_SUCCESS != (ldret = lockdownd_client_new_with_handshake(device, &client, "idevicedate"))) {
+ fprintf(stderr, "ERROR: Could not connect to lockdownd, error code %d\n", ldret);
result = -1;
goto cleanup;
}