Skip to content

Conversation

mathiasose
Copy link
Contributor

I was setting up Sentry with DSN read from env, and got some crashes when the required variable was not set, because URI.parse was being called with nil, which doesn't match.

To fix this and get a nicer warning message instead of an exception (like #218), I added a is_binary guard in Sentry.Client.get_dsn. Plus a couple of tests to verify that it works as intended.

@mitchellhenke
Copy link
Contributor

Thank you for the contribution (and tests)! 💖

@mitchellhenke mitchellhenke merged commit d941a29 into getsentry:master Jun 3, 2019
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.

2 participants