From d53c83e2fe6f1ecef006f116095fa8d1d18f3a7d Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 21:36:31 +0200 Subject: plan 9: errors, explain traces, JSON and log fields never reach the terminal raw --- cmd/krino/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/krino/main.go') diff --git a/cmd/krino/main.go b/cmd/krino/main.go index a8fab2d..7a6a5f7 100644 --- a/cmd/krino/main.go +++ b/cmd/krino/main.go @@ -77,6 +77,9 @@ func main() { // run is main without the process exit, so tests can drive it. func run(args []string, stdout, stderr io.Writer) int { + // Errors and warnings quote file names and tool messages: all of stderr + // goes through display (spec ยง15.1). + stderr = safeWriter{stderr} g := &globals{} fs := flagSet("krino", g) fs.BoolVar(&g.yes, "y", false, "") -- cgit v1.3