This commit is contained in:
Ethan Pippin 2022-01-14 12:24:34 -07:00
parent 3eab18bc8d
commit 97001f4e27
1 changed files with 1 additions and 2 deletions

View File

@ -78,14 +78,13 @@ final class ConnectToServerViewModel: ViewModel {
} else { } else {
self self
.connectToServer(uri: newURL.absoluteString .connectToServer(uri: newURL.absoluteString
.removeRegexMatches(pattern: "/web/index.html", replaceWith: ""), .removeRegexMatches(pattern: "/web/index.html"),
redirectCount: redirectCount + 1) redirectCount: redirectCount + 1)
} }
} else { } else {
self.handleAPIRequestError(completion: completion) self.handleAPIRequestError(completion: completion)
} }
} }
print(errorResponse)
case is SwiftfinStore.Errors: case is SwiftfinStore.Errors:
let swiftfinError = error as! SwiftfinStore.Errors let swiftfinError = error as! SwiftfinStore.Errors
switch swiftfinError { switch swiftfinError {