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:
Roopesh Chander
2018-12-11 00:34:22 +05:30
parent 851bd8102d
commit 15b6cf5412
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2,5 +2,5 @@
// Copyright © 2018 WireGuard LLC. All Rights Reserved.
protocol WireGuardAppError: Error {
func alertText() -> (/* title */ String, /* message */ String)
func alertText() -> (/* title */ String, /* message */ String)?
}