Added error message for generic errors
This commit is contained in:
parent
71a6795fce
commit
4fb608a955
5
main.js
5
main.js
@ -69,6 +69,11 @@ function handleError(res) {
|
|||||||
document.getElementById("error_container").classList.remove("hidden");
|
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
|
//Resets the UI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user