Fix an issue where warnings aren't displayed correctly (#136)

This is a byte array that needs to be string'd.
This commit is contained in:
Bryce Lampe
2024-06-27 14:07:25 -07:00
committed by GitHub
parent 3ce3c83c3e
commit bbdefef3c8
2 changed files with 2 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ func (c *cli) Build(
_ = printer.Wait()
for _, w := range printer.Warnings() {
b := &bytes.Buffer{}
fmt.Fprint(b, w.Short)
fmt.Fprint(b, fmt.Sprint(w.Short))
for _, d := range w.Detail {
fmt.Fprintf(b, "\n%s", d)
}