Not descriptive error: "An error occurred while trying to run a new pipeline for this merge request."
Problem to solve / use case
I wanted to run a pipeline on the community merge request: gitlab-org/project-templates/spring!42 (merged) to test it.
The UI just shows "An error occurred while trying to run a new pipeline for this merge request." while API clearly returns a very specific error message which would make it easier for me to understand:
(caveat: it may be not trivial to get all the errors in the way presentable for frontend from this hash. But maybe we can at least use "base"
Proposal
Refactor https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/pipelines/mixins/pipelines_mixin.js#L191 to use error messages from the backend
Questions to answer before starting work
-
Confirm all use-cases needed to be covered (error wise) are set up on backend for this endpoint
Edited by Payton Burdette