We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attachment: Download
Ubuntu 18.04
Swift version 5.2.4 (swift-5.2.4-RELEASE)
md5: 57eb840c13458f7b3cb0d95663c2417f
Issue Description:
The `URLError.failingURL` and `URLError.failureURLString` don't work on corelibs-foundation.
let url = URL(string: "https://swift.org")! let e = URLError(.cancelled, userInfo: [ NSURLErrorFailingURLErrorKey: url, NSURLErrorFailingURLStringErrorKey: url.absoluteString ]) print(e.failingURL?.absoluteString ?? "none") print(e.failureURLString ?? "none") print((e.userInfo[NSURLErrorFailingURLErrorKey] as? URL)?.absoluteString ?? "none") print(e.userInfo[NSURLErrorFailingURLStringErrorKey] as? String ?? "none")
prints:
none none https://swift.org https://swift.org
Needless to say, the output on macOS is "https://swift.org" four times.
The text was updated successfully, but these errors were encountered:
Fixed in #2828
Sorry, something went wrong.
glessard
No branches or pull requests
Attachment: Download
Environment
Ubuntu 18.04
Swift version 5.2.4 (swift-5.2.4-RELEASE)
Additional Detail from JIRA
md5: 57eb840c13458f7b3cb0d95663c2417f
Issue Description:
The `URLError.failingURL` and `URLError.failureURLString` don't work on corelibs-foundation.
prints:
Needless to say, the output on macOS is "https://swift.org" four times.
The text was updated successfully, but these errors were encountered: