edgurgel / httpoison

Yet Another HTTP client for Elixir powered by hackney
https://hex.pm/packages/httpoison
MIT License
2.22k stars 339 forks source link

Better stack traces #480

Closed paulanthonywilson closed 8 months ago

paulanthonywilson commented 8 months ago

Adds the location: :keep option to the quote in the __using__/1 macro. These gives better stack traces if and when unexpected errors are raised somewhere in the code. Otherwise the stack tops out at use HTTPoison.Base in HTTPoison or whever the base is being used.

The PR also includes:

Oh, and it looks like mix format has gone and changed a bunch of charlist strings to use the ~c sigil. ¯\(ツ)/¯ . I can revert that if you like.

"test ssl config tests https scheme" in HTTPoisonTest is still failing in Elixir 1.5 but I don't know why. Something to do with httparrot and ssl.

edgurgel commented 8 months ago

Thank you! This is great