Account for async result errors when scrobbling

This commit is contained in:
Claudio Ortolina
2025-08-26 08:52:48 +03:00
parent e1c61ac2ac
commit f91b872c5b
@@ -157,6 +157,8 @@ defmodule MusicLibraryWeb.ReleaseComponent do
gettext("Error scrobbling release") <> "," <> inspect(reason) gettext("Error scrobbling release") <> "," <> inspect(reason)
)} )}
end end
else
{:noreply, socket |> put_toast(:error, gettext("Error scrobbling release"))}
end end
end end
@@ -187,6 +189,8 @@ defmodule MusicLibraryWeb.ReleaseComponent do
gettext("Error scrobbling disc") <> "," <> inspect(reason) gettext("Error scrobbling disc") <> "," <> inspect(reason)
)} )}
end end
else
{:noreply, socket |> put_toast(:error, gettext("Error scrobbling disc"))}
end end
end end