1.1 KiB
1.1 KiB
id, title, status, assignee, created_date, labels, dependencies, references, priority
| id | title | status | assignee | created_date | labels | dependencies | references | priority | |
|---|---|---|---|---|---|---|---|---|---|
| ML-93 | inspect(reason) exposed to users in error messages | Done | 2026-04-20 08:58 |
|
medium |
Description
GitHub: created 2026-02-17 · updated 2026-03-05 · closed 2026-03-05
Priority: Medium
Description
Across ~35 locations in lib/music_library_web/, error reasons are shown to users via inspect(reason) — e.g. "Search failed: #{inspect(reason)}". This leaks internal error structures (Elixir terms) to the UI.
Examples
lib/music_library_web/live/artist_live/form.ex:252,259,285,292lib/music_library_web/components/record_form.ex:541,548,574,581lib/music_library_web/live/collection_live/show.ex:85,104,124,144,163lib/music_library_web/live/wishlist_live/show.ex:71,91,110,146
Expected behavior
Log inspect(reason) for debugging but show a generic user-facing message instead.
Source
From technical debt audit (2026-02-17), item #8.