ci: fixing release pipeline

This commit is contained in:
Chubby Granny Chaser
2025-10-28 21:37:28 +00:00
parent fc6068d603
commit 6b96c99bb1
11 changed files with 80 additions and 5 deletions

View File

@@ -57,9 +57,13 @@ export function AddDownloadSourceModal({
onAddDownloadSource();
} catch (error) {
logger.error("Failed to add download source:", error);
const errorMessage = error instanceof Error && error.message.includes("already exists")
? t("download_source_already_exists")
: t("failed_add_download_source");
setError("url", {
type: "server",
message: t("failed_add_download_source"),
message: errorMessage,
});
} finally {
setIsLoading(false);