# windows: Improve error message for credential write failures \(\#46221\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cfa478dde414e008138c1d8ec54c015ed3af47d6

Requested commit: cfa478dde414e008138c1d8ec54c015ed3af47d6

Commit: cfa478dde414e008138c1d8ec54c015ed3af47d6

Tree: 0c961ce58b7aa2c2a1a4a458bd20d45c5c8adbb1

Author: Xiaobo Liu

Committer: GitHub

## Message

```
windows: Improve error message for credential write failures (#46221)

Release Notes:

- Improved Display the actual Windows error message when writing
credentials to Credential Manager fails, instead of the generic "Failed
to write API key to keychain" message. This helps users diagnose issues
like permission problems.

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
```

## Parents

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

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