# Distinguish between missing models and registries in error messages \(\#32678\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9427833fdfc26973180c08b22c72a49da31fa942

Requested commit: 9427833fdfc26973180c08b22c72a49da31fa942

Commit: 9427833fdfc26973180c08b22c72a49da31fa942

Tree: 2942d8b6115bfba6c90c75721a396da5a8ede65a

Author: Ben Brandt

Committer: GitHub

## Message

```
Distinguish between missing models and registries in error messages (#32678)

Consolidates configuration error handling by moving the error type and
logic from assistant_context_editor to language_model::registry.

The registry now provides a single method to check for configuration
errors, making the error handling more consistent across the agent panel
and context editor.

This also now checks if the issue is that we don't have any providers,
or if we just can't find the model.

Previously, an incorrect model name showed up as having no providers,
which is very confusing.

Release Notes:

- N/A
```

## Parents

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

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