-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve fatal error message #186609
Improve fatal error message #186609
Changes from 2 commits
35bcea6
5f35188
df25b98
329c833
69ef861
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,9 +80,15 @@ export const Template: FunctionComponent<Props> = ({ | |
{logo} | ||
<div | ||
className="kbnWelcomeText" | ||
data-error-message={i18n('core.ui.welcomeErrorMessage', { | ||
data-error-message-title={i18n('core.ui.welcomeErrorMessageTitle', { | ||
defaultMessage: 'Elastic did not load properly', | ||
})} | ||
data-error-message-text={i18n('core.ui.welcomeErrorMessageText', { | ||
defaultMessage: | ||
'Elastic did not load properly. Check the server output for more information.', | ||
'Please reload this page. If the issue persists, check the server logs.', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: should we mention the browser's console as well? AFAIK, more often than not, this error is likely an issue loading assets, and it will probably be more obvious to start with the browser's console logs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
})} | ||
data-error-message-reload={i18n('core.ui.welcomeErrorReloadButton', { | ||
defaultMessage: 'Reload', | ||
})} | ||
> | ||
{i18n('core.ui.welcomeMessage', { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're in 2008. jQuery just got out of beta, and developers are still forced to have their "code" work on IE5.5 and IE6. (jocking, doc.querySelector wasn't a thing for IE6)