···242242 return err
243243 }
244244245245+ for _, e := range compiler.Diagnostics.Errors {
246246+ *clientMsgs = append(*clientMsgs, e.String())
247247+ }
248248+245249 if pushOptions.verboseCi {
246250 if compiler.Diagnostics.IsEmpty() {
247251 *clientMsgs = append(*clientMsgs, "success: pipeline compiled with no diagnostics")
248248- }
249249-250250- for _, e := range compiler.Diagnostics.Errors {
251251- *clientMsgs = append(*clientMsgs, e.String())
252252 }
253253254254 for _, w := range compiler.Diagnostics.Warnings {