diff options
| author | 2016-04-29 20:27:32 +0200 | |
|---|---|---|
| committer | 2016-04-29 20:27:32 +0200 | |
| commit | cca7ce77d8bde998933ef8a753407b043806c1a6 (patch) | |
| tree | d11c3642fd17301d92d87862e0e8627a4ff84754 /tools/idevicedebug.c | |
| parent | 692f7c9de72ca7fcaba51659972270d445751438 (diff) | |
| download | libimobiledevice-cca7ce77d8bde998933ef8a753407b043806c1a6.tar.gz libimobiledevice-cca7ce77d8bde998933ef8a753407b043806c1a6.tar.bz2 | |
idevicedebug: Show error if container info not found
Diffstat (limited to 'tools/idevicedebug.c')
| -rw-r--r-- | tools/idevicedebug.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tools/idevicedebug.c b/tools/idevicedebug.c index b00893d..f18254a 100644 --- a/tools/idevicedebug.c +++ b/tools/idevicedebug.c | |||
| @@ -317,16 +317,14 @@ int main(int argc, char *argv[]) | |||
| 317 | instproxy_client_free(instproxy_client); | 317 | instproxy_client_free(instproxy_client); |
| 318 | instproxy_client = NULL; | 318 | instproxy_client = NULL; |
| 319 | 319 | ||
| 320 | if (container) { | 320 | if (container && (plist_get_node_type(container) == PLIST_STRING)) { |
| 321 | if (plist_get_node_type(container) == PLIST_STRING) { | 321 | plist_get_string_val(container, &working_directory); |
| 322 | plist_get_string_val(container, &working_directory); | 322 | debug_info("working_directory: %s\n", working_directory); |
| 323 | debug_info("working_directory: %s\n", working_directory); | 323 | plist_free(container); |
| 324 | plist_free(container); | 324 | } else { |
| 325 | } else { | 325 | plist_free(container); |
| 326 | plist_free(container); | 326 | fprintf(stderr, "Could not determine container path for bundle identifier %s.\n", bundle_identifier); |
| 327 | fprintf(stderr, "Could not determine container path for bundle identifier %s.\n", bundle_identifier); | 327 | goto cleanup; |
| 328 | goto cleanup; | ||
| 329 | } | ||
| 330 | } | 328 | } |
| 331 | 329 | ||
| 332 | /* start and connect to debugserver */ | 330 | /* start and connect to debugserver */ |
