Created
April 21, 2017 05:42
-
-
Save tsraveling/e03dc834265eae0aba3e65fdd654560c to your computer and use it in GitHub Desktop.
Strings as errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension String: LocalizedError { | |
| public var errorDescription: String? { return self } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment