···242 return err
243 }
2440000245 if pushOptions.verboseCi {
246 if compiler.Diagnostics.IsEmpty() {
247 *clientMsgs = append(*clientMsgs, "success: pipeline compiled with no diagnostics")
248- }
249-250- for _, e := range compiler.Diagnostics.Errors {
251- *clientMsgs = append(*clientMsgs, e.String())
252 }
253254 for _, w := range compiler.Diagnostics.Warnings {
···242 return err
243 }
244245+ for _, e := range compiler.Diagnostics.Errors {
246+ *clientMsgs = append(*clientMsgs, e.String())
247+ }
248+249 if pushOptions.verboseCi {
250 if compiler.Diagnostics.IsEmpty() {
251 *clientMsgs = append(*clientMsgs, "success: pipeline compiled with no diagnostics")
0000252 }
253254 for _, w := range compiler.Diagnostics.Warnings {