forked from tangled.org/core
this repo has no description

knotserver: always show pipeline errors

IMO, we shouldn't make errors opt-in to actually show upon push, at least
not if/until we have a UI to show them to the user.

Signed-off-by: Winter <winter@winter.cafe>

Changed files
+4 -4
knotserver
+4 -4
knotserver/internal.go
···
return err
}
if pushOptions.verboseCi {
if compiler.Diagnostics.IsEmpty() {
*clientMsgs = append(*clientMsgs, "success: pipeline compiled with no diagnostics")
-
}
-
-
for _, e := range compiler.Diagnostics.Errors {
-
*clientMsgs = append(*clientMsgs, e.String())
}
for _, w := range compiler.Diagnostics.Warnings {
···
return err
}
+
for _, e := range compiler.Diagnostics.Errors {
+
*clientMsgs = append(*clientMsgs, e.String())
+
}
+
if pushOptions.verboseCi {
if compiler.Diagnostics.IsEmpty() {
*clientMsgs = append(*clientMsgs, "success: pipeline compiled with no diagnostics")
}
for _, w := range compiler.Diagnostics.Warnings {