diff options
author | BALATON Zoltan | 2016-07-12 23:01:47 +0200 |
---|---|---|
committer | BALATON Zoltan | 2017-04-08 15:48:07 +0200 |
commit | 5a8449a391d2cc848f55cfb4406bad4ded0bd138 (patch) | |
tree | 8597f3d58c6fcc5747c805806525ef877ea340d9 /src/property_list_service.c | |
parent | 45fda819e1aae3cacf25a04b9fe22cd6ddc61f5a (diff) | |
download | libimobiledevice-5a8449a391d2cc848f55cfb4406bad4ded0bd138.tar.gz libimobiledevice-5a8449a391d2cc848f55cfb4406bad4ded0bd138.tar.bz2 |
Propagate lower level errors to callers instead of returning unknown
error for most failures
Diffstat (limited to 'src/property_list_service.c')
-rw-r--r-- | src/property_list_service.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/property_list_service.c b/src/property_list_service.c index a5bdf9b..f411699 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c @@ -98,7 +98,8 @@ LIBIMOBILEDEVICE_API property_list_service_error_t property_list_service_client_ * @return PROPERTY_LIST_SERVICE_E_SUCCESS on success, * PROPERTY_LIST_SERVICE_E_INVALID_ARG when one or more parameters are * invalid, PROPERTY_LIST_SERVICE_E_PLIST_ERROR when dict is not a valid - * plist, or PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR when an unspecified + * plist, PROPERTY_LIST_SERVICE_E_MUX_ERROR when a communication error + * occurs, or PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR when an unspecified * error occurs. */ static property_list_service_error_t internal_plist_send(property_list_service_client_t client, plist_t plist, int binary) @@ -140,6 +141,7 @@ static property_list_service_error_t internal_plist_send(property_list_service_c } if (bytes <= 0) { debug_info("ERROR: sending to device failed."); + res = PROPERTY_LIST_SERVICE_E_MUX_ERROR; } free(content); |