storage_stats: Actually check the HTTP status code
By default reqwest does not return an actual error for non-success HTTP
status codes like HTTP 404.
This lead to parser failures when trying to read the HTML error message
from a 404 reply as a deb822 document.
Use `Response::error_for_status()` to actually check for successful
status codes.
Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
parent
5569c481
No related branches found
No related tags found
Checking pipeline status
This commit is part of merge request !111. Comments created here will be created in the context of that merge request.
Loading