Skip to content
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

UI: Warn uncaught exceptions to console #3623

Merged
merged 2 commits into from
Dec 6, 2017

Conversation

DingoEatingFuzz
Copy link
Contributor

The UI currently gracefully handles runtime exceptions, but it doesn't do much in the way of saying what, why, or how.

Now in the event of the gray screen of death, a stack trace is warned to the developer console.
image

However, production stack traces aren't very helpful, so I also wrote a short guide on how to run the UI in dev mode from source while proxying to a different Nomad cluster.

Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never seen this before, but if it works as advertised, we need it.

run.next(() => {
// eslint-disable-next-line
console.warn('UNRECOVERABLE ERROR:', this.get('error'));
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to steal this for TFE @thrashr888

@DingoEatingFuzz
Copy link
Contributor Author

It definitely works so far as it warns the error. Time will tell if that error is helpful enough to diagnose issues.

@DingoEatingFuzz DingoEatingFuzz merged commit 289b52a into master Dec 6, 2017
@DingoEatingFuzz DingoEatingFuzz deleted the f-ui-warn-uncaught-exceptions branch December 6, 2017 22:11
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants