give correct error message

This commit is contained in:
jb-alvarado 2023-02-02 10:32:50 +01:00
parent 77d61855d8
commit 6d4f43c2ea

View File

@ -852,7 +852,7 @@ async function generatePlaylist() {
let payload = {
method: 'POST',
headers: authStore.authHeader,
headers: { ...contentType, ...authStore.authHeader },
} as Payload
if (selectedFolders.value.length > 0 && !generateFromAll.value) {
@ -875,9 +875,9 @@ async function generatePlaylist() {
indexStore.showAlert = false
}, 2000)
})
.catch((e: string) => {
.catch((e: any) => {
indexStore.alertVariant = 'alert-danger'
indexStore.alertMsg = e
indexStore.alertMsg = e.data ? e.data : e
indexStore.showAlert = true
setTimeout(() => {