Files
music_library/backlog/completed/ml-94 - Unsafe-Assets.store_image-pattern-match-in-artist-form.md
T
Claudio Ortolina 2a688e2309 Cleanup old tasks
2026-04-24 09:58:09 +01:00

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
https://github.com/cloud8421/music_library/issues/80
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.