Added error message for generic errors

This commit is contained in:
Nicolai Ort 2021-08-17 19:43:39 +02:00
parent 71a6795fce
commit 4fb608a955
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 8 additions and 3 deletions

View File

@ -69,6 +69,11 @@ function handleError(res) {
document.getElementById("error_container").classList.remove("hidden");
})
}
else {
console.log(res);
document.getElementById("error_text").innerText = "An unknown error occured (see console for more details)";
document.getElementById("error_container").classList.remove("hidden");
}
}
//Resets the UI