# Ensure client reconnects if an error occurs during authentication \(\#35629\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/efba4364fd28757122489f2564fa6d6b71e717ba)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: efba4364fd28757122489f2564fa6d6b71e717ba

Requested commit: efba4364fd28757122489f2564fa6d6b71e717ba

Commit: efba4364fd28757122489f2564fa6d6b71e717ba

Tree: ccc1e1cafcfa3e01da03904b7cafb9a5665a5c82

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Ensure client reconnects if an error occurs during authentication (#35629)

In #35471, we added a new `AuthenticationError` variant to the client
enum `Status`, but the reconnection logic was ignoring it when
determining whether to reconnect.

This pull request fixes that regression and introduces test coverage for
this case.

Release Notes:

- N/A
```

## Parents

- [6c83a3bcdea1212bc74fc6d46cc6fca869137808](https://git.cafe/gitcafe/zed/commit/6c83a3bcdea1212bc74fc6d46cc6fca869137808?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/efba4364fd28757122489f2564fa6d6b71e717ba?format=markdown)
