Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

fix: show error message when searching

Christian Feiba14329638f7
diff --git a/client/components/search-videos.js b/client/components/search-videos.js
index 52c9fe1..de8c5fc 100644
--- a/client/components/search-videos.js
+++ b/client/components/search-videos.js
@@ -65,6 +65,7 @@ class SearchVideos extends HTMLElement {
})
.catch(err => {
console.error(err)
+ $status.innerText = `An error occurred: ${err.message}`
})
.finally(() => {
document.body.classList.remove('searching')