feature: Error messages now link to that error in docs
This commit is contained in:
parent
f9ac78d27f
commit
1a8659f81f
|
|
@ -117,7 +117,7 @@
|
||||||
|
|
||||||
const domErr = document.createElement('div')
|
const domErr = document.createElement('div')
|
||||||
domErr.classList.add('error')
|
domErr.classList.add('error')
|
||||||
domErr.innerHTML = '<h1>Error ' + friendlyType + '</h1><p>' + message + "</p><p><a href = 'http://docs.olivetin.app/troubleshooting.html' target = 'blank'/>OliveTin Documentation</a></p>"
|
domErr.innerHTML = '<h1>Error ' + friendlyType + '</h1><p>' + message + "</p><p><a href = 'http://docs.olivetin.app/err-" + type + ".html' target = 'blank'/>" + type + " error in OliveTin Documentation</a></p>"
|
||||||
|
|
||||||
document.getElementById('root-group').appendChild(domErr)
|
document.getElementById('root-group').appendChild(domErr)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue