diff options
Diffstat (limited to 'dist')
-rw-r--r-- | dist/callback.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/callback.html b/dist/callback.html index 6960d81..2cc891c 100644 --- a/dist/callback.html +++ b/dist/callback.html @@ -22,8 +22,8 @@ fetch("https://kobert.dev/spotify-api/callback/" + token + "/" + getParameterByName("code")) .then(function(response) { if (!response.ok) { - throw new Error(`HTTP error! status: ${response.status}`); document.getElementById("p1").innerHTML = "Error occured while loading songs: ${response.status}"; + throw new Error(`HTTP error! status: ${response.status}`); } document.getElementById("p1").innerHTML = "Loaded songs"; }); |