summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-02-04 02:15:56 +0100
committerGravatar Nikias Bassen2022-02-04 02:15:56 +0100
commita64fcc3988f75cb4fc2388013c245e5e884bb96f (patch)
tree1b122ace4e0c658fbb80a2980a86eabc1114e0d2 /src
parentac89a1fed5ad916c81bca1515b10934e3e01b057 (diff)
downloadlibimobiledevice-a64fcc3988f75cb4fc2388013c245e5e884bb96f.tar.gz
libimobiledevice-a64fcc3988f75cb4fc2388013c245e5e884bb96f.tar.bz2
tools: Print meaningful error messages when service startup fails
Diffstat (limited to 'src')
-rw-r--r--src/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index 88132d2..db529bb 100644
--- a/src/service.c
+++ b/src/service.c
@@ -91,11 +91,11 @@ LIBIMOBILEDEVICE_API service_error_t service_client_factory_start_service(idevic
}
lockdownd_service_descriptor_t service = NULL;
- lockdownd_start_service(lckd, service_name, &service);
+ lockdownd_error_t lerr = lockdownd_start_service(lckd, service_name, &service);
lockdownd_client_free(lckd);
if (!service || service->port == 0) {
- debug_info("Could not start service %s!", service_name);
+ debug_info("Could not start service %s: %s", service_name, lockdownd_strerror(lerr));
return SERVICE_E_START_SERVICE_ERROR;
}