PracticeCraft / spirit

A series of exercises for Elixir newcomers to practice with language basics and local development.
48 stars 3 forks source link

Handle non-OK responses from GitHub API #16

Closed waseem-medhat closed 1 day ago

waseem-medhat commented 2 weeks ago

This should primarily address the problem where rate-limiting responses cause MixHelpers.fetch_gh_contents! to return a different body which breaks other functions. After this update, the fetch function would be the one to raise, which makes the errors more informative.

Fixes #7 (at least for the time being)