summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 18:14:18 +0200
committerGravatar Nikias Bassen2012-07-17 18:14:18 +0200
commitd3dd165257c75c7f3542a97f40135ff94ac7d361 (patch)
tree75e943e91ecd85653fdc1bb7dcf2abf2ce44d674 /src
parent5822ae2d49e41ffc095be39717454a43a3452ef1 (diff)
downloadidevicerestore-d3dd165257c75c7f3542a97f40135ff94ac7d361.tar.gz
idevicerestore-d3dd165257c75c7f3542a97f40135ff94ac7d361.tar.bz2
tss: Print server MESSAGE response if unhandled error is returned
Diffstat (limited to 'src')
-rw-r--r--src/tss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tss.c b/src/tss.c
index bcd5a7d..bf6ba51 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -387,7 +387,8 @@ plist_t tss_send_request(plist_t tss_request) {
}
if (status_code != 0) {
- error("ERROR: TSS request failed (status=%d)\n", status_code);
+ char* message = strstr(response->content, "MESSAGE=");
+ error("ERROR: TSS request failed (status=%d, message=%s)\n", status_code, message);
free(response->content);
free(response);
free(request);