884 B
884 B
id, title, status, assignee, created_date, labels, dependencies, references, priority
| id | title | status | assignee | created_date | labels | dependencies | references | priority | |
|---|---|---|---|---|---|---|---|---|---|
| ML-94 | Unsafe Assets.store_image pattern-match in artist form | Done | 2026-04-20 08:58 |
|
medium |
Description
GitHub: created 2026-02-17 · updated 2026-03-03 · closed 2026-03-03
Priority: Medium
Description
lib/music_library_web/live/artist_live/form.ex:303 — Uses {:ok, asset} = Assets.store_image(image_params) without wrapping in case/with. If store_image returns an error, the function crashes with a MatchError instead of showing a user-friendly error.
Expected behavior
Wrap in case or with and handle the error tuple to show a user-friendly message.
Source
From technical debt audit (2026-02-17), item #7.