Skip to content

Instantly share code, notes, and snippets.

@dongalor
Created March 27, 2018 14:33
Show Gist options
  • Save dongalor/1ad8040ccb7a825b637c952ccff6fe16 to your computer and use it in GitHub Desktop.
Save dongalor/1ad8040ccb7a825b637c952ccff6fe16 to your computer and use it in GitHub Desktop.
Printing description of error:
Error Domain=NSURLErrorDomain Code=-1005 "Сетевое соединение потеряно." UserInfo={NSUnderlyingError=0x1c044b4c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x1c02924d0 [0x1b753f310]>{length = 16, capacity = 16, bytes = 0x100201bb52cae4420000000000000000}, _kCFStreamErrorCodeKey=57, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://example.com/method, NSErrorFailingURLKey=https://example.com/method, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=Сетевое соединение потеряно.}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment