Explain save failures and keep download diagnostics available
This commit is contained in:
@@ -1842,7 +1842,7 @@ async function preload(video, { quiet = false, mux = false, retry = false } = {}
|
||||
warmThumb(thumbUrlFor(id, video));
|
||||
if (!quiet) toast(`Saved “${video.title}” ✓`);
|
||||
} else if (!quiet && !(res && res.paused)) {
|
||||
toast('⚠ ' + ((res && res.error) || 'Could not save video'));
|
||||
toast('⚠ ' + (window.DownloadErrors ? DownloadErrors.message(res?.error) : res?.error || 'Could not save video'));
|
||||
}
|
||||
} catch (e) {
|
||||
if (e.name !== 'AbortError') SaveQueue.state(id, 'failed', e.message || 'Save failed');
|
||||
|
||||
Reference in New Issue
Block a user