diff options
author | 2022-02-04 02:15:56 +0100 | |
---|---|---|
committer | 2022-02-04 02:15:56 +0100 | |
commit | a64fcc3988f75cb4fc2388013c245e5e884bb96f (patch) | |
tree | 1b122ace4e0c658fbb80a2980a86eabc1114e0d2 /tools/idevicebackup2.c | |
parent | ac89a1fed5ad916c81bca1515b10934e3e01b057 (diff) | |
download | libimobiledevice-a64fcc3988f75cb4fc2388013c245e5e884bb96f.tar.gz libimobiledevice-a64fcc3988f75cb4fc2388013c245e5e884bb96f.tar.bz2 |
tools: Print meaningful error messages when service startup fails
Diffstat (limited to 'tools/idevicebackup2.c')
-rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index eff05ee..b024721 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
@@ -639,7 +639,7 @@ static void do_post_notification(idevice_t device, const char *notification) | |||
639 | } | 639 | } |
640 | 640 | ||
641 | lockdownd_error_t ldret = lockdownd_start_service(lockdown, NP_SERVICE_NAME, &service); | 641 | lockdownd_error_t ldret = lockdownd_start_service(lockdown, NP_SERVICE_NAME, &service); |
642 | if (service && service->port) { | 642 | if (ldret == LOCKDOWN_E_SUCCESS) { |
643 | np_client_new(device, service, &np); | 643 | np_client_new(device, service, &np); |
644 | if (np) { | 644 | if (np) { |
645 | np_post_notification(np, notification); | 645 | np_post_notification(np, notification); |