About: Descriptive errors

This commit is contained in:
LoveEevee
2018-12-04 01:23:11 +03:00
parent a0197e768b
commit 51f306d1c7
6 changed files with 34 additions and 14 deletions

View File

@@ -151,7 +151,8 @@ class Loader{
getFilename(name){
return name.slice(0, name.lastIndexOf("."))
}
errorMsg(){
errorMsg(error){
console.error(error)
this.error = true
this.loaderPercentage.appendChild(document.createElement("br"))
this.loaderPercentage.appendChild(document.createTextNode("An error occurred, please refresh"))