ci: fixing release pipeline

This commit is contained in:
Chubby Granny Chaser
2025-10-28 21:38:07 +00:00
parent 6b96c99bb1
commit a11b3e8877
5 changed files with 8 additions and 11 deletions

View File

@@ -57,10 +57,11 @@ 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");
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: errorMessage,