From 275b85688307d63c2f84bd0a77295c5c2c78f5d4 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Thu, 11 May 2017 22:55:08 -0700 Subject: [PATCH] Fix a mistake in app error class --- pass/AppError.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pass/AppError.swift b/pass/AppError.swift index 0305c36..d6a8397 100644 --- a/pass/AppError.swift +++ b/pass/AppError.swift @@ -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."