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
This commit is contained in:
NimBold
2026-08-15 23:12:56 +03:30
parent 8e7e81277b
commit 3f3a3514a3
+5 -1
View File
@@ -1877,7 +1877,11 @@ export const DownloadTable: React.FC<DownloadTableProps> = ({ 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);