Error handling: alertText() can be nil
Indicating that no alert is to be shown for that error. Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -8,7 +8,7 @@ enum ZipArchiveError: WireGuardAppError {
|
||||
case cantOpenOutputZipFileForWriting
|
||||
case badArchive
|
||||
|
||||
func alertText() -> (String, String) {
|
||||
func alertText() -> (String, String)? {
|
||||
switch (self) {
|
||||
case .cantOpenInputZipFile:
|
||||
return ("Unable to read zip archive", "The zip archive could not be read.")
|
||||
|
||||
Reference in New Issue
Block a user