Commit aaeac64
fix: add error handling to search tools for better diagnostics (#227)
Enhanced error handling in ha_search_entities, ha_deep_search, and
ha_get_state to include structured error responses with:
- success: false flag for explicit error detection
- error_type: exception class name for categorization
- traceback: full stack trace for debugging
- Contextual suggestions for resolution
Closes #208
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3dcfefa commit aaeac64
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
243 | 244 | | |
| 245 | + | |
244 | 246 | | |
| 247 | + | |
| 248 | + | |
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
| |||
351 | 355 | | |
352 | 356 | | |
353 | 357 | | |
| 358 | + | |
354 | 359 | | |
355 | 360 | | |
356 | 361 | | |
| 362 | + | |
| 363 | + | |
357 | 364 | | |
358 | 365 | | |
| 366 | + | |
359 | 367 | | |
360 | 368 | | |
361 | | - | |
362 | | - | |
| 369 | + | |
| 370 | + | |
363 | 371 | | |
364 | 372 | | |
365 | 373 | | |
| |||
371 | 379 | | |
372 | 380 | | |
373 | 381 | | |
| 382 | + | |
374 | 383 | | |
| 384 | + | |
375 | 385 | | |
376 | 386 | | |
| 387 | + | |
| 388 | + | |
377 | 389 | | |
378 | 390 | | |
379 | 391 | | |
| |||
0 commit comments