Account for async result errors when scrobbling
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user