Commit 4bda48cf2c
Unsigned
Layout: unified · split
Hutch/Networking/SRHTError.swift +5 −3
| @@ -174,12 +174,14 @@ extension Array where Element == GraphQLError { | |||
| 174 | if containsMessage("unknown revision") || containsMessage("path not in the working tree") { | 174 | if containsMessage("unknown revision") || containsMessage("path not in the working tree") { |
| 175 | return .unknownRevision | 175 | return .unknownRevision |
| 176 | } | 176 | } |
| 177 | if containsMessage("not found") || containsMessage("no such") || containsMessage("missing revision") { | 177 | // Must precede the broader "no such" check below, which would otherwise |
| 178 | return .notFound | 178 | // shadow this and report a provisioning failure as missing content. |
| 179 | } | ||
| 180 | if containsMessage("no such repository or user found") { | 179 | if containsMessage("no such repository or user found") { |
| 181 | return .serviceNotProvisioned | 180 | return .serviceNotProvisioned |
| 182 | } | 181 | } |
| 182 | if containsMessage("not found") || containsMessage("no such") || containsMessage("missing revision") { | ||
| 183 | return .notFound | ||
| 184 | } | ||
| 183 | if let primaryMessage, !primaryMessage.isEmpty { | 185 | if let primaryMessage, !primaryMessage.isEmpty { |
| 184 | return .validation | 186 | return .validation |
| 185 | } | 187 | } |