peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
284 stars 108 forks source link

Add informative error message when the project ID can't be automatically found #26

Closed p42ul closed 6 years ago

p42ul commented 6 years ago

I was a bit puzzled by this error: * (Mix) Could not start application goth: Goth.start(:normal, []) returned an error: shutdown: failed to start child: Goth.Config ** (EXIT) an exception was raised: ** (HTTPoison.Error) :nxdomain ... So I added a try-rescue block to catch this :nxdomain error and show how to fix it when it occurs.