Improve error handling for color extraction

Includes a around embedding generation, which was happening twice (the
first call was redundant as record embeddings are always regenerated
after their parent artist embeddings are regenerated).

Closes #144.
This commit is contained in:
Claudio Ortolina
2026-03-30 14:29:04 +01:00
parent 24f061646e
commit b0018db89d
5 changed files with 37 additions and 6 deletions
+1
View File
@@ -21,6 +21,7 @@ defmodule MusicLibraryWeb.ErrorMessages do
do: gettext("this record is already in your collection")
def friendly_message(:not_found), do: gettext("the resource was not found")
def friendly_message(:asset_not_found), do: gettext("the cover image asset was not found")
def friendly_message(:no_discogs_data), do: gettext("no Discogs profile available")
def friendly_message(:image_not_found), do: gettext("no image could be found")
def friendly_message(:invalid_parameters), do: gettext("invalid parameters were provided")