knotserver: always show pipeline errors #432

merged
opened by winter.bsky.social targeting master from winter.bsky.social/core: push-luoyqwkpromz

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
}
+
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 _, e := range compiler.Diagnostics.Errors {
-
*clientMsgs = append(*clientMsgs, e.String())
-
}
-
for _, w := range compiler.Diagnostics.Warnings {
*clientMsgs = append(*clientMsgs, w.String())
}