Skip to content

Log exceptions on crash. - #297

Open
VerinSenpai wants to merge 2 commits into
space-wizards:masterfrom
VerinSenpai:log-exceptions-on-crash
Open

Log exceptions on crash.#297
VerinSenpai wants to merge 2 commits into
space-wizards:masterfrom
VerinSenpai:log-exceptions-on-crash

Conversation

@VerinSenpai

Copy link
Copy Markdown

Adds a handler for Exception to Main.
Also changes the log coming from auth url overrides to show the actual auth url. This was previously just showing the location of the variable which seemed unhelpful. Though maybe that was intended for privacy purposes? Although at that point should this even log a variable?

I have concerns this would even be deemed appropriate but I figured I'd shoot it out there and see what happens.
The throw statement that follows the log message is there to allow debuggers to pickup on the error. Also prevents the launcher
from hanging after it logs the message... for some reason?

Reason for doing this now is that I've seen a few launcher crashes which I suspect were down to domain resolution. See (#292)

@VerinSenpai

Copy link
Copy Markdown
Author

I have instead resolved to do this instead of fixing the two bugs in the linked issue is because I can't seem to make it look good ;(

Also the second crash caught me off guard and its not as simple a fix as returning an authenticationfailed error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant