display error and stack
This commit is contained in:
parent
8c25620c6b
commit
452859fb0f
2 changed files with 27 additions and 0 deletions
|
|
@ -68,6 +68,10 @@ const persistedStateOptions = {
|
|||
throbber.classList.add('dead')
|
||||
document.querySelector('#status').textContent = i18n.global.t('splash.error')
|
||||
console.error('PleromaFE failed to initialize: ', e)
|
||||
document.querySelector('#statusError').textContent = e
|
||||
document.querySelector('#statusStack').textContent = e.stack
|
||||
document.querySelector('#statusError').style = 'display: block'
|
||||
document.querySelector('#statusStack').style = 'display: block'
|
||||
}
|
||||
|
||||
window.splashError = e => splashError(i18n, e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue