Remove todo for update account attributes error

This commit is contained in:
Harry 2023-03-27 17:09:39 -07:00 committed by GitHub
parent 7a717b9c35
commit 580312e4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,8 +307,9 @@ extension RegistrationCoordinatorImpl {
return signalService.urlSessionForMainSignalService().promiseForTSRequest(request)
.map(on: schedulers.sync) { response in
guard response.responseStatusCode >= 200, response.responseStatusCode < 300 else {
// TODO[Registration]: what other error codes can come up here?
return OWSAssertionError("Got unexpected response code from update attributes request.")
// Errors are undifferentiated; the only actual error we can get is an unauthenticated
// one and there isn't any way to handle that as different from a, say server 500.
return OWSAssertionError("Got unexpected response code from update attributes request: \(response.responseStatusCode).")
}
return nil
}