Skip to content

Commit c0990a1

Browse files
Add NSURLErrorCannotConnectToHost error handling (#1268)
Handle the NSURLErrorCannotConnectToHost error as IO_ERROR Relates-To: OLPEDGE-2654 Signed-off-by: Mykhailo Kuchma <[email protected]>
1 parent e52b967 commit c0990a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

olp-cpp-sdk-core/src/http/ios/OLPNetworkIOS.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
case NSURLErrorTimedOut:
101101
return ErrorCode::TIMEOUT_ERROR;
102102
case NSURLErrorNetworkConnectionLost:
103+
case NSURLErrorCannotConnectToHost:
103104
return ErrorCode::IO_ERROR;
104105
default:
105106
if (error_code >= NSURLErrorClientCertificateRequired &&

0 commit comments

Comments
 (0)