Skip to content

Commit

Permalink
apple: return informative error string when the whole request fails.
Browse files Browse the repository at this point in the history
Closes #32.
  • Loading branch information
slime73 committed May 5, 2024
1 parent 0ecd6ee commit 6ccb7cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/apple/NSURLClient.mm
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
}
}

if (reply.responseCode == 0 && body == nil && error != nil)
{
reply.body = toCppString(error.localizedDescription);
}

return reply;
}}

Expand Down

0 comments on commit 6ccb7cb

Please sign in to comment.