Skip to content
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

Add support for fatalError() #14

Closed
hlineholm opened this issue Oct 15, 2017 · 2 comments
Closed

Add support for fatalError() #14

hlineholm opened this issue Oct 15, 2017 · 2 comments

Comments

@hlineholm
Copy link

A fatal error in Swift

fatalError("An error \(error) occurred")

could be converted to

throw Exception("An error $error occurred")

@angelolloqui
Copy link
Owner

Thanks.

I think this will go when I make the Foundation converter plugin, in which I plan to replace things that are not part of the language itself but from the foundation types.

@angelolloqui
Copy link
Owner

Added a very simple version of this as part of 8b94a81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants