mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-08-04 19:27:41 +00:00
c2e99afb8b
Replace the ad-hoc fmt.Errorf non-2xx branch with apierr.ParseGarage so decodeResponse now returns a typed *apierr.UpstreamError on error. Update two admin_test.go tests that string-matched the old error shape to assert UpstreamError fields (HTTPStatus, Message) instead.