diff options
-rw-r--r-- | src/stransport_stream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stransport_stream.c b/src/stransport_stream.c index d316c3769..34c38b22d 100644 --- a/src/stransport_stream.c +++ b/src/stransport_stream.c @@ -24,11 +24,16 @@ int stransport_error(OSStatus ret) return 0; } +#if !TARGET_OS_IPHONE message = SecCopyErrorMessageString(ret, NULL); GITERR_CHECK_ALLOC(message); giterr_set(GITERR_NET, "SecureTransport error: %s", CFStringGetCStringPtr(message, kCFStringEncodingUTF8)); CFRelease(message); +#else + giterr_set(GITERR_NET, "SecureTransport error: OSStatus %d", (unsigned int)ret); +#endif + return -1; } |