mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Add new error
This commit is contained in:
parent
d987c09409
commit
7b3553bbf1
2 changed files with 6 additions and 2 deletions
|
|
@ -21,6 +21,7 @@ enum RoutingError: Int, CaseIterable, Identifiable {
|
|||
case dutyCycleLimit = 9
|
||||
case badRequest = 32
|
||||
case notAuthorized = 33
|
||||
case pkiFailed = 34
|
||||
|
||||
var id: Int { self.rawValue }
|
||||
var display: String {
|
||||
|
|
@ -50,6 +51,8 @@ enum RoutingError: Int, CaseIterable, Identifiable {
|
|||
return "routing.badRequest".localized
|
||||
case .notAuthorized:
|
||||
return "routing.notauthorized".localized
|
||||
case .pkiFailed:
|
||||
return "routing.pkiFailed".localized
|
||||
}
|
||||
}
|
||||
func protoEnumValue() -> Routing.Error {
|
||||
|
|
@ -80,7 +83,8 @@ enum RoutingError: Int, CaseIterable, Identifiable {
|
|||
return Routing.Error.badRequest
|
||||
case .notAuthorized:
|
||||
return Routing.Error.notAuthorized
|
||||
|
||||
case .pkiFailed:
|
||||
return Routing.Error.pkiFailed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 97fa34517f80332a11046a73f26d55100fbee9e2
|
||||
Subproject commit 3e753697aa1140d2c998cb63739729e733002874
|
||||
Loading…
Add table
Add a link
Reference in a new issue