diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-14 21:36:31 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-14 21:36:31 +0200 |
| commit | d53c83e2fe6f1ecef006f116095fa8d1d18f3a7d (patch) | |
| tree | 91f850a794c89eff5221dbbb5fcdb1b9b4632532 /cmd/krino/main.go | |
| parent | 93cf0729ec7cf3129de0808cbcc3403b86d86fff (diff) | |
| download | krino-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/main.go')
| -rw-r--r-- | cmd/krino/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
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, "") |
