feature: Error messages now link to that error in docs

This commit is contained in:
jamesread 2022-10-24 23:28:35 +01:00
parent f9ac78d27f
commit 1a8659f81f
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@
const domErr = document.createElement('div')
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)
}