aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/explain.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 21:36:31 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 21:36:31 +0200
commitd53c83e2fe6f1ecef006f116095fa8d1d18f3a7d (patch)
tree91f850a794c89eff5221dbbb5fcdb1b9b4632532 /cmd/krino/explain.go
parent93cf0729ec7cf3129de0808cbcc3403b86d86fff (diff)
downloadkrino-d53c83e2fe6f1ecef006f116095fa8d1d18f3a7d.tar.gz
krino-d53c83e2fe6f1ecef006f116095fa8d1d18f3a7d.zip
plan 9: errors, explain traces, JSON and log fields never reach the terminal raw
Diffstat (limited to 'cmd/krino/explain.go')
-rw-r--r--cmd/krino/explain.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/krino/explain.go b/cmd/krino/explain.go
index b69f50f..8d5418e 100644
--- a/cmd/krino/explain.go
+++ b/cmd/krino/explain.go
@@ -82,8 +82,8 @@ func cmdExplain(g *globals, args []string, stdout, stderr io.Writer) int {
// spaces.
func printTrace(w io.Writer, t *cond.Trace) {
var buf bytes.Buffer
- t.Format(&buf)
+ displayTrace(t).Format(&buf)
for _, line := range strings.Split(strings.TrimRight(buf.String(), "\n"), "\n") {
- fmt.Fprintf(w, " %s\n", display(line))
+ fmt.Fprintf(w, " %s\n", line)
}
}