RPi-Distro / rpi-source

Raspberry Pi kernel source installer
MIT License
140 stars 39 forks source link

Improved error message #4

Closed Ircama closed 3 years ago

Ircama commented 3 years ago

Improved error message

Now the error message from github api also shows details, like in the following example (which might occur sometimes):

*** SoC: BCM2711
ERROR:
Couldn't download https://api.github.com/repos/RPi-Distro/rpi-source/git/refs/heads/master, HTTPError: 403

{
   "documentation_url": "https://developer.github.com/v3/#rate-limiting",
   "message": "API rate limit exceeded for 80.116.12.179. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"
}

Help: https://github.com/RPi-Distro/rpi-source/blob/master/README.md