remote build: internal error from 400 response
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### What needs to get done
Catch and raise a user-friendly error when Snapcraft fails to push a repo to Launchpad. This likely needs to be fixed upstream in Craft Application.
We already catch many `launchpadlib` errors but `lazr.restfulclient.errors.BadRequest` isn't being caught when pushing the repo.
### Why it needs to get done
To provide a better UX. Internal errors should never be exposed.
Source:
- @jnsgruk via [matrix](https://matrix.to/#/!fcfzhmtmKApekMQcxX:ubuntu.com/$i_-XIB1IDWrY4w7j16LkWR9-9JFwtVsPv4t65wpbsgg?via=ubuntu.com&via=matrix.org)
- [snapcraft-20250527-114721.927489.log](https://github.com/user-attachments/files/20458454/snapcraft-20250527-114721.927489.log)
Evaluation history
No evaluation history available.