Skip to content

feat: improve error messages (#5)#75

Merged
xx4h merged 1 commit intomainfrom
feat/improve-error-messages
Apr 3, 2026
Merged

feat: improve error messages (#5)#75
xx4h merged 1 commit intomainfrom
feat/improve-error-messages

Conversation

@xx4h
Copy link
Copy Markdown
Owner

@xx4h xx4h commented Apr 2, 2026

Replace the generic "no Entity X capable of Y" error with specific messages distinguishing: entity not found, domain not found, domain lacks service, and entity exists but wrong domain. Also add HTTP status code checking to the API client (401, 404, other non-200).

When fuzzy matching is enabled, resolve the entity name against all states before producing error messages so that typos reference the matched entity rather than the raw input.

@xx4h xx4h force-pushed the feat/improve-error-messages branch from c867011 to 1e248c6 Compare April 3, 2026 08:57
Replace the generic "no Entity X capable of Y" error with specific
messages distinguishing: entity not found, domain not found, domain
lacks service, and entity exists but wrong domain. Also add HTTP
status code checking to the API client (401, 404, other non-200).

When fuzzy matching is enabled, resolve the entity name against all
states before producing error messages so that typos reference the
matched entity rather than the raw input.

Signed-off-by: Fabian 'xx4h' Sylvester <xx4h@xx4h.de>
@xx4h xx4h force-pushed the feat/improve-error-messages branch from 1e248c6 to a367052 Compare April 3, 2026 09:00
@xx4h xx4h merged commit 0e751a1 into main Apr 3, 2026
11 checks passed
@xx4h xx4h mentioned this pull request Apr 3, 2026
@xx4h xx4h deleted the feat/improve-error-messages branch April 3, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant