Skip to content

Commit 6ccb7cb

Browse files
committed
apple: return informative error string when the whole request fails.
Closes #32.
1 parent 0ecd6ee commit 6ccb7cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/apple/NSURLClient.mm

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
}
7979
}
8080

81+
if (reply.responseCode == 0 && body == nil && error != nil)
82+
{
83+
reply.body = toCppString(error.localizedDescription);
84+
}
85+
8186
return reply;
8287
}}
8388

0 commit comments

Comments
 (0)