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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user