Fix pipeline schedule service error handling
What does this MR do and why?
When the Pipeline Schedules ref fails to expand, a ServiceResponse
error is returned. While this is the correct behaviour, it looks like the REST endpoint uses the model
errors to decide what to return. This led to the result being nil
with a 200
status code.
This MR updates the service's error handling to abide by the endpoint's pattern.
The problem was reported here
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Panos Kanellidis