diff --git a/views/error.pug b/views/error.pug index 39cef78..6289570 100644 --- a/views/error.pug +++ b/views/error.pug @@ -7,6 +7,7 @@ block content .error h1 #{translate('somethingWentWrongLabel', currentLocale.code)} (#{error.status}) p #{error.message} + h2 #{translate('tryLabel', currentLocale.code)}: ul case error.status @@ -23,10 +24,17 @@ block content if error.stack li #{translate('stackTraceErrorLabel', currentLocale.code)} + + if helpers.isCustomCredentials(settings) + form(action='/settings?reset=true' method='POST') + p + button(type="submit") #{translate('resetCredentialsLabel', currentLocale.code)} + if error.response h2 #{translate('errorLabel', currentLocale.code)} pre.error__stack-trace code.shell #{helpers.dump(error.response.data)} + if error.stack h2 #{translate('stackTraceLabel', currentLocale.code)} pre.error__stack-trace