Skip to content

Fix (nsError as Error).localizedDescription output #967

New issue

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

Merged
merged 1 commit into from
May 17, 2017

Conversation

ikesyo
Copy link
Member

@ikesyo ikesyo commented Apr 26, 2017

Because NSError is not LocalizedError and _swift_Foundation_getErrorDefaultUserInfo does not handle NSError instances, (nsError as Error).localizedDescription didn't return expected output. So let's handle NSError case in Error.localizedDescription implementation.

Because NSError is not `LocalizedError` and `_swift_Foundation_getErrorDefaultUserInfo` does not handle NSError instances, `(nsError as Error).localizedDescription` didn't return expected output. So let's handle NSError case in `Error.localizedDescription` implementation.
@ikesyo
Copy link
Member Author

ikesyo commented Apr 26, 2017

@swift-ci Please test

@ikesyo ikesyo requested a review from parkera May 16, 2017 00:07
@parkera
Copy link
Contributor

parkera commented May 17, 2017

Thanks!

@parkera parkera merged commit 1b58627 into swiftlang:master May 17, 2017
@ikesyo ikesyo deleted the nserror-localizeddescription-fix branch May 18, 2017 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants