Fix a mistake in app error class
This commit is contained in:
parent
89f2d6e764
commit
275b856883
1 changed files with 4 additions and 2 deletions
|
|
@ -16,8 +16,10 @@ enum AppError: Error {
|
|||
case GitResetError
|
||||
case PGPPublicKeyNotExistError
|
||||
case UnknownError
|
||||
}
|
||||
|
||||
var localizedDescription: String {
|
||||
extension AppError: LocalizedError {
|
||||
public var errorDescription: String? {
|
||||
switch self {
|
||||
case .RepositoryNotSetError:
|
||||
return "Git repository is not set."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue