diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-25 17:17:47 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-25 17:17:47 -0500 |
| commit | 86173c3afeee4ffabc07b37d0f5702e9f0347ee7 (patch) | |
| tree | 457376ad3d46ba289410df430b8a7da294813275 | |
| parent | 5dfff8b3c396bbe0e89a169ef46f010fb74c2ddd (diff) | |
| download | slskd-86173c3afeee4ffabc07b37d0f5702e9f0347ee7.tar.gz | |
coalesce download errors
| -rw-r--r-- | src/web/src/components/Search/Response.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/src/components/Search/Response.jsx b/src/web/src/components/Search/Response.jsx index 567b80a3..a17df823 100644 --- a/src/web/src/components/Search/Response.jsx +++ b/src/web/src/components/Search/Response.jsx @@ -254,8 +254,9 @@ class Response extends Component { size="large" /> <Label> - {downloadError.data + - ` (HTTP ${downloadError.status} ${downloadError.statusText})`} + {downloadError?.data + ? `${downloadError.data} (HTTP ${downloadError.status} ${downloadError.statusText})` + : 'Download failed'} </Label> </span> )} |
