# anthropic: Remove logging when no credentials are available \(\#37276\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d74384f6e2a1d0b04f7788883d1b599e7e0b85fa

Requested commit: d74384f6e2a1d0b04f7788883d1b599e7e0b85fa

Commit: d74384f6e2a1d0b04f7788883d1b599e7e0b85fa

Tree: 513c428285aa606832dacd3a23a3640b636b545e

Author: tidely

Committer: GitHub

## Message

````
anthropic: Remove logging when no credentials are available (#37276)

Removes excess log which got through on each start of Zed
```
ERROR [agent_ui::language_model_selector] Failed to authenticate provider: Anthropic: credentials not found
```

The `AnthropicLanguageModelProvider::api_key` method returned a
`anyhow::Result` which would convert
`AuthenticateError::CredentialsNotFound` into a generic error because of
the implicit `Into` when using the `?` operator. This would then get
converted into a `AuthenticateError::Other` later.

By specifying the error type as `AuthenticateError`, we remove this
implicit conversion and the log gets removed.

Release Notes:

- N/A
````

## Parents

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

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