diff options
author | 2022-02-04 02:15:56 +0100 | |
---|---|---|
committer | 2022-02-04 02:15:56 +0100 | |
commit | a64fcc3988f75cb4fc2388013c245e5e884bb96f (patch) | |
tree | 1b122ace4e0c658fbb80a2980a86eabc1114e0d2 /src | |
parent | ac89a1fed5ad916c81bca1515b10934e3e01b057 (diff) | |
download | libimobiledevice-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.c | 4 |
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 | |||
91 | } | 91 | } |
92 | 92 | ||
93 | lockdownd_service_descriptor_t service = NULL; | 93 | lockdownd_service_descriptor_t service = NULL; |
94 | lockdownd_start_service(lckd, service_name, &service); | 94 | lockdownd_error_t lerr = lockdownd_start_service(lckd, service_name, &service); |
95 | lockdownd_client_free(lckd); | 95 | lockdownd_client_free(lckd); |
96 | 96 | ||
97 | if (!service || service->port == 0) { | 97 | if (!service || service->port == 0) { |
98 | debug_info("Could not start service %s!", service_name); | 98 | debug_info("Could not start service %s: %s", service_name, lockdownd_strerror(lerr)); |
99 | return SERVICE_E_START_SERVICE_ERROR; | 99 | return SERVICE_E_START_SERVICE_ERROR; |
100 | } | 100 | } |
101 | 101 | ||