Skip to content

Commit 5bb51bd

Browse files
committed
log error for not updating ui
1 parent 66f70bd commit 5bb51bd

File tree

1 file changed

+5
-0
lines changed
  • MyMusicClientSveltePwa/src/lib/scripts

1 file changed

+5
-0
lines changed

MyMusicClientSveltePwa/src/lib/scripts/api.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ export async function deletePlaylist(playlistId) {
9292
});
9393

9494
if (!response.ok) {
95+
96+
response.json().then((data) => {
97+
console.error("Error deleting playlist:", data);
98+
});
99+
95100
throw new Error(`HTTP error! status: ${response}`);
96101
}
97102
return {

0 commit comments

Comments
 (0)