Created
October 19, 2019 14:25
-
-
Save isaac-weisberg/fee9e1d5fa2e816ff98943f0a68ca6c1 to your computer and use it in GitHub Desktop.
This file contains 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 ForecastDownloadError: ErrorTitledSingularRepresentable { | |
var errorTitleSingular: ErrorTitledSingularType { | |
switch self { | |
case .parsing: | |
return ErrorTitledSingular("Dang it", "There was a problem decoding the forecast") | |
case .download(let reason): | |
return reason.errorTitleSingular | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment