aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-25 17:17:47 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-25 17:17:47 -0500
commit86173c3afeee4ffabc07b37d0f5702e9f0347ee7 (patch)
tree457376ad3d46ba289410df430b8a7da294813275 /src
parent5dfff8b3c396bbe0e89a169ef46f010fb74c2ddd (diff)
downloadslskd-86173c3afeee4ffabc07b37d0f5702e9f0347ee7.tar.gz
coalesce download errors
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/Search/Response.jsx5
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>
)}