Failed to trigger Koji build with no relevant error message
When a Koji build fails to be triggered, user is not really informed about the cause of the failure:
For the context, I had triggered the Packit exception with this PR https://github.com/packit/ogr/pull/852
I have created the PR to play with the command line and build in-koji a scratch build (this was successful). I was testing scratch builds as a way to "trigger" Koschei and I have broken the ogr code on purpose to get a reverse dependency build failure on Koschei.
The same happens also for Bodhi updates, e.g. https://dashboard.packit.dev/jobs/bodhi/1692. We should have the needed error in the DB in model.data["error"] for both of the jobs.
TODO:
- [x] expose the error via API
- [x] show it on dashboard
- [x] include it also in the created issue
I didn't mean to close this yet, the service part is done, and I will create followup PR for dashboard.