-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
featureA feature request or implementationA feature request or implementationruntimeThe Swift RuntimeThe Swift Runtime
Description
Motivation
With Swift 6.1.1 e.g. the program
import Foundation
let url = URL(string: "https://raw.githubusercontent.com/jmespath/jmespath.test/master/tests/filters.json")!
do {
_ = try Data(contentsOf: url)
} catch {
print(error.localizedDescription)
}
prints the "nice" error message The specified URL type isn’t supported.
but the program
import Foundation
let url = URL(string: "https://raw.githubusercontent.com/jmespath/jmespath.test/master/tests/filters.json")!
_ = try Data(contentsOf: url)
does not print such an "understandable" error message. But it does so on Linux.
Proposed solution
It would be nice if in such a case the localizedDescription would also be printed on Windows.
Alternatives considered
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
featureA feature request or implementationA feature request or implementationruntimeThe Swift RuntimeThe Swift Runtime