From 3f3a3514a3dbc82508e84fc6db1e134af0dac9e6 Mon Sep 17 00:00:00 2001 From: NimBold Date: Sat, 15 Aug 2026 23:12:56 +0330 Subject: [PATCH] fix(ui): expose resume failure reason - show persisted resume failure details instead of a generic backend rejection - keep the generic message only when no actionable reason is available --- src/components/DownloadTable.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/DownloadTable.tsx b/src/components/DownloadTable.tsx index 1273c3c..d07f8ee 100644 --- a/src/components/DownloadTable.tsx +++ b/src/components/DownloadTable.tsx @@ -1877,7 +1877,11 @@ export const DownloadTable: React.FC = ({ filter, onSummaryC try { const resumed = await useDownloadStore.getState().resumeDownload(item.id); if (!resumed) { - throw new Error(t($ => $.downloadTable.backendRejectedStart)); + const current = useDownloadStore.getState().downloads.find( + download => download.id === item.id + ); + const reason = current?.lastError?.trim(); + throw new Error(reason || t($ => $.downloadTable.backendRejectedStart)); } } catch (error) { console.error("Failed to resume:", error);