As seen in the other bug, snapcraft code basically gives a generic "Failed to get macaroon" message if the store responds with a not-OK http status (4xx and 5xx pretty much):
if response.ok:
return response.json()["macaroon"]
else:
raise errors.StoreAuthenticationError("Failed to get macaroon", response)
As seen in the other bug, snapcraft code basically gives a generic "Failed to get macaroon" message if the store responds with a not-OK http status (4xx and 5xx pretty much):
if response.ok: json()[ "macaroon" ] StoreAuthentica tionError( "Failed to get macaroon", response)
return response.
else:
raise errors.