From fd43544a9251fcc698b0002967d45c251c203bb2 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 11 Oct 2014 22:12:04 +0200 Subject: tools: Make sure to print an error when lockdown connection fails --- tools/idevicebackup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/idevicebackup.c') diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c index 2159566..c5315d2 100644 --- a/tools/idevicebackup.c +++ b/tools/idevicebackup.c @@ -843,7 +843,8 @@ int main(int argc, char *argv[]) } } - if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &client, "idevicebackup")) { + if (LOCKDOWN_E_SUCCESS != (ldret = lockdownd_client_new_with_handshake(device, &client, "idevicebackup"))) { + printf("ERROR: Could not connect to lockdownd, error code %d\n", ldret); idevice_free(device); return -1; } -- cgit v1.1-32-gdbae